Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / history / src / Plugin / views / field / HistoryUserTimestamp.php
index f33dab25aa52521a7d581a998bc2402ad15db096..617cd23e12d530ab68fe57ff381950ef1c1b13fa 100644 (file)
@@ -42,6 +42,9 @@ class HistoryUserTimestamp extends Node {
     }
   }
 
+  /**
+   * {@inheritdoc}
+   */
   protected function defineOptions() {
     $options = parent::defineOptions();
 
@@ -50,6 +53,9 @@ class HistoryUserTimestamp extends Node {
     return $options;
   }
 
+  /**
+   * {@inheritdoc}
+   */
   public function buildOptionsForm(&$form, FormStateInterface $form_state) {
     parent::buildOptionsForm($form, $form_state);
     if (\Drupal::moduleHandler()->moduleExists('comment')) {
@@ -61,6 +67,9 @@ class HistoryUserTimestamp extends Node {
     }
   }
 
+  /**
+   * {@inheritdoc}
+   */
   public function query() {
     // Only add ourselves to the query if logged in.
     if (\Drupal::currentUser()->isAnonymous()) {
@@ -96,7 +105,7 @@ class HistoryUserTimestamp extends Node {
         '#theme' => 'mark',
         '#status' => $mark,
       ];
-      return $this->renderLink(drupal_render($build), $values);
+      return $this->renderLink(\Drupal::service('renderer')->render($build), $values);
     }
   }