Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / contextual / src / Plugin / views / field / ContextualLinks.php
index 6bd5c01a43970343b0c9c58ff6240e70c1784aea..de30f5c424715059ff065ecf83ba0efbd52688bf 100644 (file)
@@ -138,7 +138,7 @@ class ContextualLinks extends FieldPluginBase {
         '#type' => 'contextual_links_placeholder',
         '#id' => _contextual_links_to_id($contextual_links),
       ];
-      return drupal_render($element);
+      return \Drupal::service('renderer')->render($element);
     }
     else {
       return '';
@@ -148,6 +148,6 @@ class ContextualLinks extends FieldPluginBase {
   /**
    * {@inheritdoc}
    */
-  public function query() { }
+  public function query() {}
 
 }