diff --git a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/views/field/Category.php b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/views/field/Category.php index 8291422..9df7f10 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/views/field/Category.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/views/field/Category.php @@ -9,6 +9,7 @@ use Drupal\views\Plugin\views\display\DisplayPluginBase; use Drupal\views\Plugin\views\field\FieldPluginBase; +use Drupal\views\ResultRow; use Drupal\views\ViewExecutable; use Drupal\Component\Annotation\PluginID; @@ -64,7 +65,7 @@ public function buildOptionsForm(&$form, &$form_state) { * @return data * Returns string for the link text. */ - protected function render_link($data, $values) { + protected function render_link($data, ResultRow $values) { $cid = $this->getValue($values, 'cid'); if (!empty($this->options['link_to_category']) && !empty($cid) && $data !== NULL && $data !== '') { $this->options['alter']['make_link'] = TRUE; diff --git a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/views/field/TitleLink.php b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/views/field/TitleLink.php index 3eae377..8d31a71 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/views/field/TitleLink.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/views/field/TitleLink.php @@ -9,6 +9,7 @@ use Drupal\views\Plugin\views\display\DisplayPluginBase; use Drupal\views\Plugin\views\field\FieldPluginBase; +use Drupal\views\ResultRow; use Drupal\views\ViewExecutable; use Drupal\Component\Annotation\PluginID; @@ -73,7 +74,7 @@ function render($values) { * @return data * Returns string for the link text. */ - protected function render_link($data, $values) { + protected function render_link($data, ResultRow $values) { $link = $this->getValue($values, 'link'); if (!empty($this->options['display_as_link'])) { $this->options['alter']['make_link'] = TRUE; diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/Comment.php b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/Comment.php index e9143ae..1e10263 100644 --- a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/Comment.php +++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/Comment.php @@ -7,6 +7,7 @@ namespace Drupal\comment\Plugin\views\field; +use Drupal\views\ResultRow; use Drupal\views\ViewExecutable; use Drupal\views\Plugin\views\display\DisplayPluginBase; use Drupal\views\Plugin\views\field\FieldPluginBase; @@ -61,7 +62,7 @@ public function buildOptionsForm(&$form, &$form_state) { parent::buildOptionsForm($form, $form_state); } - function render_link($data, $values) { + function render_link($data, ResultRow $values) { if (!empty($this->options['link_to_comment'])) { $this->options['alter']['make_link'] = TRUE; $nid = $this->getValue($values, 'nid'); diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/Link.php b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/Link.php index d1e19f5..8403cb5 100644 --- a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/Link.php +++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/Link.php @@ -9,6 +9,7 @@ use Drupal\views\Plugin\views\field\FieldPluginBase; use Drupal\Component\Annotation\PluginID; +use Drupal\views\ResultRow; /** * Base field handler to present a link. @@ -47,7 +48,7 @@ function render($values) { return $this->render_link($comment, $values); } - function render_link($data, $values) { + function render_link($data, ResultRow $values) { $text = !empty($this->options['text']) ? $this->options['text'] : t('view'); $comment = $data; $nid = $comment->nid; diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkApprove.php b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkApprove.php index 49bcb58..f89c7b1 100644 --- a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkApprove.php +++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkApprove.php @@ -23,7 +23,7 @@ public function access() { return user_access('administer comments'); } - function render_link($data, $values) { + function render_link($data, ResultRow $values) { $status = $this->getValue($values, 'status'); // Don't show an approve link on published nodes. diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkDelete.php b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkDelete.php index 23c96de..7c6fa92 100644 --- a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkDelete.php +++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkDelete.php @@ -8,6 +8,7 @@ namespace Drupal\comment\Plugin\views\field; use Drupal\Component\Annotation\PluginID; +use Drupal\views\ResultRow; /** * Field handler to present a link to delete a comment. @@ -23,7 +24,7 @@ public function access() { return user_access('administer comments'); } - function render_link($data, $values) { + function render_link($data, ResultRow $values) { $text = !empty($this->options['text']) ? $this->options['text'] : t('delete'); $cid = $this->getValue($values, 'cid'); diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkEdit.php b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkEdit.php index d77b824..2af8eab 100644 --- a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkEdit.php +++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkEdit.php @@ -8,6 +8,7 @@ namespace Drupal\comment\Plugin\views\field; use Drupal\Component\Annotation\PluginID; +use Drupal\views\ResultRow; /** * Field handler to present a link to edit a comment. @@ -37,7 +38,7 @@ public function buildOptionsForm(&$form, &$form_state) { ); } - function render_link($data, $values) { + function render_link($data, ResultRow $values) { parent::render_link($data, $values); // Ensure user has access to edit this comment. $comment = $this->getValue($values); diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkReply.php b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkReply.php index 112462f..fa57277 100644 --- a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkReply.php +++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LinkReply.php @@ -8,6 +8,7 @@ namespace Drupal\comment\Plugin\views\field; use Drupal\Component\Annotation\PluginID; +use Drupal\views\ResultRow; /** * Field handler to present a link to reply to a comment. @@ -23,7 +24,7 @@ public function access() { return user_access('post comments'); } - function render_link($data, $values) { + function render_link($data, ResultRow $values) { $text = !empty($this->options['text']) ? $this->options['text'] : t('reply'); $nid = $this->getValue($values, 'nid'); $cid = $this->getValue($values, 'cid'); diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/NodeNewComments.php b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/NodeNewComments.php index c19b84c..be297ee 100644 --- a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/NodeNewComments.php +++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/NodeNewComments.php @@ -11,6 +11,7 @@ use Drupal\Core\Database\Connection; use Drupal\views\Plugin\views\field\Numeric; use Drupal\views\Plugin\views\display\DisplayPluginBase; +use Drupal\views\ResultRow; use Drupal\views\ViewExecutable; use Symfony\Component\DependencyInjection\ContainerInterface; @@ -127,7 +128,7 @@ public function preRender(&$values) { } } - function render_link($data, $values) { + function render_link($data, ResultRow $values) { if (!empty($this->options['link_to_comment']) && $data !== NULL && $data !== '') { $node = entity_create('node', array( 'nid' => $this->getValue($values, 'nid'), diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/Username.php b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/Username.php index 1b61c05..db75af6 100644 --- a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/Username.php +++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/Username.php @@ -7,6 +7,7 @@ namespace Drupal\comment\Plugin\views\field; +use Drupal\views\ResultRow; use Drupal\views\ViewExecutable; use Drupal\views\Plugin\views\display\DisplayPluginBase; use Drupal\views\Plugin\views\field\FieldPluginBase; @@ -48,7 +49,7 @@ public function buildOptionsForm(&$form, &$form_state) { parent::buildOptionsForm($form, $form_state); } - function render_link($data, $values) { + function render_link($data, ResultRow $values) { if (!empty($this->options['link_to_user'])) { $account = entity_create('user', array()); $account->uid = $this->getValue($values, 'uid'); diff --git a/core/modules/contact/lib/Drupal/contact/Plugin/views/field/ContactLink.php b/core/modules/contact/lib/Drupal/contact/Plugin/views/field/ContactLink.php index 475a72a..c8a3fb5 100644 --- a/core/modules/contact/lib/Drupal/contact/Plugin/views/field/ContactLink.php +++ b/core/modules/contact/lib/Drupal/contact/Plugin/views/field/ContactLink.php @@ -10,6 +10,7 @@ use Drupal\Core\Entity\EntityInterface; use Drupal\Component\Annotation\PluginID; use Drupal\user\Plugin\views\field\Link; +use Drupal\views\ResultRow; /** * Defines a field that links to the user contact page, if access is permitted. @@ -42,7 +43,7 @@ public function access() { /** * {@inheritdoc} */ - public function render_link(EntityInterface $entity, \stdClass $values) { + public function render_link(EntityInterface $entity, ResultRow $values) { if (empty($entity)) { return; diff --git a/core/modules/content_translation/lib/Drupal/content_translation/Plugin/views/field/TranslationLink.php b/core/modules/content_translation/lib/Drupal/content_translation/Plugin/views/field/TranslationLink.php index 2abd160..fec87a9 100644 --- a/core/modules/content_translation/lib/Drupal/content_translation/Plugin/views/field/TranslationLink.php +++ b/core/modules/content_translation/lib/Drupal/content_translation/Plugin/views/field/TranslationLink.php @@ -10,6 +10,7 @@ use Drupal\views\Plugin\views\field\FieldPluginBase; use Drupal\Component\Annotation\PluginID; use Drupal\Core\Entity\EntityInterface; +use Drupal\views\ResultRow; /** * Provides a translation link for an entity. @@ -59,7 +60,7 @@ function render($values) { * @return string * The acutal rendered text (without the link) of this field. */ - public function render_link(EntityInterface $entity, \stdClass $values) { + public function render_link(EntityInterface $entity, ResultRow $values) { if (content_translation_translate_access($entity)) { $text = !empty($this->options['text']) ? $this->options['text'] : t('translate'); diff --git a/core/modules/file/lib/Drupal/file/Plugin/views/field/File.php b/core/modules/file/lib/Drupal/file/Plugin/views/field/File.php index 22376c3..ea6b30a 100644 --- a/core/modules/file/lib/Drupal/file/Plugin/views/field/File.php +++ b/core/modules/file/lib/Drupal/file/Plugin/views/field/File.php @@ -7,6 +7,7 @@ namespace Drupal\file\Plugin\views\field; +use Drupal\views\ResultRow; use Drupal\views\ViewExecutable; use Drupal\views\Plugin\views\display\DisplayPluginBase; use Drupal\Component\Annotation\PluginID; @@ -56,7 +57,7 @@ public function buildOptionsForm(&$form, &$form_state) { * * Data should be made XSS safe prior to calling this function. */ - function render_link($data, $values) { + function render_link($data, ResultRow $values) { if (!empty($this->options['link_to_file']) && $data !== NULL && $data !== '') { $this->options['alter']['make_link'] = TRUE; $this->options['alter']['path'] = file_create_url($this->getValue($values, 'uri')); diff --git a/core/modules/node/lib/Drupal/node/Plugin/views/field/Link.php b/core/modules/node/lib/Drupal/node/Plugin/views/field/Link.php index 8327bcf..3520ec9 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/views/field/Link.php +++ b/core/modules/node/lib/Drupal/node/Plugin/views/field/Link.php @@ -9,6 +9,7 @@ use Drupal\views\Plugin\views\field\FieldPluginBase; use Drupal\Component\Annotation\PluginID; +use Drupal\views\ResultRow; /** * Field handler to present a link to the node. @@ -51,7 +52,7 @@ function render($values) { } } - function render_link($node, $values) { + function render_link($node, ResultRow $values) { if (node_access('view', $node)) { $this->options['alter']['make_link'] = TRUE; $this->options['alter']['path'] = "node/$node->nid"; diff --git a/core/modules/node/lib/Drupal/node/Plugin/views/field/LinkDelete.php b/core/modules/node/lib/Drupal/node/Plugin/views/field/LinkDelete.php index 51cc3fe..2ad8cf9 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/views/field/LinkDelete.php +++ b/core/modules/node/lib/Drupal/node/Plugin/views/field/LinkDelete.php @@ -9,6 +9,7 @@ use Drupal\node\Plugin\views\field\Link; use Drupal\Component\Annotation\PluginID; +use Drupal\views\ResultRow; /** * Field handler to present a link to delete a node. @@ -22,7 +23,7 @@ class LinkDelete extends Link { /** * Renders the link. */ - function render_link($node, $values) { + function render_link($node, ResultRow $values) { // Ensure user has access to delete this node. if (!node_access('delete', $node)) { return; diff --git a/core/modules/node/lib/Drupal/node/Plugin/views/field/LinkEdit.php b/core/modules/node/lib/Drupal/node/Plugin/views/field/LinkEdit.php index 2a69d13..631eeb3 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/views/field/LinkEdit.php +++ b/core/modules/node/lib/Drupal/node/Plugin/views/field/LinkEdit.php @@ -9,6 +9,7 @@ use Drupal\node\Plugin\views\field\Link; use Drupal\Component\Annotation\PluginID; +use Drupal\views\ResultRow; /** * Field handler to present a link node edit. @@ -22,7 +23,7 @@ class LinkEdit extends Link { /** * Renders the link. */ - function render_link($node, $values) { + function render_link($node, ResultRow $values) { // Ensure user has access to edit this node. if (!node_access('update', $node)) { return; diff --git a/core/modules/node/lib/Drupal/node/Plugin/views/field/Node.php b/core/modules/node/lib/Drupal/node/Plugin/views/field/Node.php index b446ed2..4fc1451 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/views/field/Node.php +++ b/core/modules/node/lib/Drupal/node/Plugin/views/field/Node.php @@ -7,6 +7,7 @@ namespace Drupal\node\Plugin\views\field; +use Drupal\views\ResultRow; use Drupal\views\ViewExecutable; use Drupal\views\Plugin\views\display\DisplayPluginBase; use Drupal\views\Plugin\views\field\FieldPluginBase; @@ -63,7 +64,7 @@ public function buildOptionsForm(&$form, &$form_state) { * * Data should be made XSS safe prior to calling this function. */ - function render_link($data, $values) { + function render_link($data, ResultRow $values) { if (!empty($this->options['link_to_node']) && !empty($this->additional_fields['nid'])) { if ($data !== NULL && $data !== '') { $this->options['alter']['make_link'] = TRUE; diff --git a/core/modules/node/lib/Drupal/node/Plugin/views/field/Revision.php b/core/modules/node/lib/Drupal/node/Plugin/views/field/Revision.php index 410b2e0..d1a574a 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/views/field/Revision.php +++ b/core/modules/node/lib/Drupal/node/Plugin/views/field/Revision.php @@ -7,6 +7,7 @@ namespace Drupal\node\Plugin\views\field; +use Drupal\views\ResultRow; use Drupal\views\ViewExecutable; use Drupal\views\Plugin\views\display\DisplayPluginBase; use Drupal\node\Plugin\views\field\Node; @@ -59,7 +60,7 @@ public function buildOptionsForm(&$form, &$form_state) { * * Data should be made XSS safe prior to calling this function. */ - function render_link($data, $values) { + function render_link($data, ResultRow $values) { if (!empty($this->options['link_to_node_revision']) && $data !== NULL && $data !== '') { $this->options['alter']['make_link'] = TRUE; $nid = $this->getValue($values, 'nid'); diff --git a/core/modules/node/lib/Drupal/node/Plugin/views/field/RevisionLink.php b/core/modules/node/lib/Drupal/node/Plugin/views/field/RevisionLink.php index 5df4452..8076861 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/views/field/RevisionLink.php +++ b/core/modules/node/lib/Drupal/node/Plugin/views/field/RevisionLink.php @@ -9,6 +9,7 @@ use Drupal\node\Plugin\views\field\Link; use Drupal\views\Plugin\views\display\DisplayPluginBase; +use Drupal\views\ResultRow; use Drupal\views\ViewExecutable; use Drupal\Component\Annotation\PluginID; @@ -34,7 +35,7 @@ public function access() { return user_access('view revisions') || user_access('administer nodes'); } - function render_link($data, $values) { + function render_link($data, ResultRow $values) { list($node, $vid) = $this->get_revision_entity($values, 'view'); if (!isset($vid)) { return; diff --git a/core/modules/node/lib/Drupal/node/Plugin/views/field/RevisionLinkDelete.php b/core/modules/node/lib/Drupal/node/Plugin/views/field/RevisionLinkDelete.php index 2ffb49c..f46345e 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/views/field/RevisionLinkDelete.php +++ b/core/modules/node/lib/Drupal/node/Plugin/views/field/RevisionLinkDelete.php @@ -9,6 +9,7 @@ use Drupal\node\Plugin\views\field\RevisionLink; use Drupal\Component\Annotation\PluginID; +use Drupal\views\ResultRow; /** * Field handler to present link to delete a node revision. @@ -23,7 +24,7 @@ public function access() { return user_access('delete revisions') || user_access('administer nodes'); } - function render_link($data, $values) { + function render_link($data, ResultRow $values) { list($node, $vid) = $this->get_revision_entity($values, 'delete'); if (!isset($vid)) { return; diff --git a/core/modules/node/lib/Drupal/node/Plugin/views/field/RevisionLinkRevert.php b/core/modules/node/lib/Drupal/node/Plugin/views/field/RevisionLinkRevert.php index 8f9671c..19451b6 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/views/field/RevisionLinkRevert.php +++ b/core/modules/node/lib/Drupal/node/Plugin/views/field/RevisionLinkRevert.php @@ -9,6 +9,7 @@ use Drupal\node\Plugin\views\field\RevisionLink; use Drupal\Component\Annotation\PluginID; +use Drupal\views\ResultRow; /** * Field handler to present a link to revert a node to a revision. @@ -23,7 +24,7 @@ public function access() { return user_access('revert revisions') || user_access('administer nodes'); } - function render_link($data, $values) { + function render_link($data, ResultRow $values) { list($node, $vid) = $this->get_revision_entity($values, 'update'); if (!isset($vid)) { return; diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/field/Taxonomy.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/field/Taxonomy.php index 793c8de..f05bb78 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/field/Taxonomy.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/field/Taxonomy.php @@ -9,6 +9,7 @@ use Drupal\views\Plugin\views\field\FieldPluginBase; use Drupal\views\Plugin\views\display\DisplayPluginBase; +use Drupal\views\ResultRow; use Drupal\views\ViewExecutable; use Drupal\Component\Annotation\PluginID; @@ -68,7 +69,7 @@ public function buildOptionsForm(&$form, &$form_state) { * * Data should be made XSS safe prior to calling this function. */ - function render_link($data, $values) { + function render_link($data, ResultRow $values) { $tid = $this->getValue($values, 'tid'); if (!empty($this->options['link_to_taxonomy']) && !empty($tid) && $data !== NULL && $data !== '') { $term = entity_create('taxonomy_term', array( diff --git a/core/modules/user/lib/Drupal/user/Plugin/views/field/Language.php b/core/modules/user/lib/Drupal/user/Plugin/views/field/Language.php index 6fe5c35..f777c33 100644 --- a/core/modules/user/lib/Drupal/user/Plugin/views/field/Language.php +++ b/core/modules/user/lib/Drupal/user/Plugin/views/field/Language.php @@ -8,6 +8,7 @@ namespace Drupal\user\Plugin\views\field; use Drupal\Component\Annotation\PluginID; +use Drupal\views\ResultRow; /** * Views field handler for user language. @@ -18,7 +19,7 @@ */ class Language extends User { - function render_link($data, $values) { + function render_link($data, ResultRow $values) { $uid = $this->getValue($values, 'uid'); if (!empty($this->options['link_to_user'])) { $uid = $this->getValue($values, 'uid'); diff --git a/core/modules/user/lib/Drupal/user/Plugin/views/field/Link.php b/core/modules/user/lib/Drupal/user/Plugin/views/field/Link.php index 6656447..2474835 100644 --- a/core/modules/user/lib/Drupal/user/Plugin/views/field/Link.php +++ b/core/modules/user/lib/Drupal/user/Plugin/views/field/Link.php @@ -9,6 +9,7 @@ use Drupal\views\Plugin\views\field\FieldPluginBase; use Drupal\views\Plugin\views\display\DisplayPluginBase; +use Drupal\views\ResultRow; use Drupal\views\ViewExecutable; use Drupal\Core\Entity\EntityInterface; use Drupal\Component\Annotation\PluginID; @@ -73,7 +74,7 @@ function render($values) { * @return string * The acutal rendered text (without the link) of this field. */ - public function render_link(EntityInterface $entity, \stdClass $values) { + public function render_link(EntityInterface $entity, ResultRow $values) { $text = !empty($this->options['text']) ? $this->options['text'] : t('View'); $this->options['alter']['make_link'] = TRUE; diff --git a/core/modules/user/lib/Drupal/user/Plugin/views/field/LinkCancel.php b/core/modules/user/lib/Drupal/user/Plugin/views/field/LinkCancel.php index e2420a1..64a216e 100644 --- a/core/modules/user/lib/Drupal/user/Plugin/views/field/LinkCancel.php +++ b/core/modules/user/lib/Drupal/user/Plugin/views/field/LinkCancel.php @@ -9,6 +9,7 @@ use Drupal\Core\Entity\EntityInterface; use Drupal\Component\Annotation\PluginID; +use Drupal\views\ResultRow; /** * Field handler to present a link to user cancel. @@ -22,7 +23,7 @@ class LinkCancel extends Link { /** * Overrides \Drupal\user\Plugin\views\field\Link::render_link(). */ - public function render_link(EntityInterface $entity, \stdClass $values) { + public function render_link(EntityInterface $entity, ResultRow $values) { if ($entity && $entity->access('delete')) { $this->options['alter']['make_link'] = TRUE; diff --git a/core/modules/user/lib/Drupal/user/Plugin/views/field/LinkEdit.php b/core/modules/user/lib/Drupal/user/Plugin/views/field/LinkEdit.php index 8954610..2177d95 100644 --- a/core/modules/user/lib/Drupal/user/Plugin/views/field/LinkEdit.php +++ b/core/modules/user/lib/Drupal/user/Plugin/views/field/LinkEdit.php @@ -9,6 +9,7 @@ use Drupal\Core\Entity\EntityInterface; use Drupal\Component\Annotation\PluginID; +use Drupal\views\ResultRow; /** * Field handler to present a link to user edit. @@ -22,7 +23,7 @@ class LinkEdit extends Link { /** * Overrides \Drupal\user\Plugin\views\field\Link::render_link(). */ - public function render_link(EntityInterface $entity, \stdClass $values) { + public function render_link(EntityInterface $entity, ResultRow $values) { if ($entity && $entity->access('update')) { $this->options['alter']['make_link'] = TRUE; diff --git a/core/modules/user/lib/Drupal/user/Plugin/views/field/Mail.php b/core/modules/user/lib/Drupal/user/Plugin/views/field/Mail.php index 5598b18..f053592 100644 --- a/core/modules/user/lib/Drupal/user/Plugin/views/field/Mail.php +++ b/core/modules/user/lib/Drupal/user/Plugin/views/field/Mail.php @@ -8,6 +8,7 @@ namespace Drupal\user\Plugin\views\field; use Drupal\Component\Annotation\PluginID; +use Drupal\views\ResultRow; /** /** @@ -39,7 +40,7 @@ public function buildOptionsForm(&$form, &$form_state) { ); } - function render_link($data, $values) { + function render_link($data, ResultRow $values) { parent::render_link($data, $values); if ($this->options['link_to_user'] == 'mailto') { diff --git a/core/modules/user/lib/Drupal/user/Plugin/views/field/Name.php b/core/modules/user/lib/Drupal/user/Plugin/views/field/Name.php index b09e84a..22d244a 100644 --- a/core/modules/user/lib/Drupal/user/Plugin/views/field/Name.php +++ b/core/modules/user/lib/Drupal/user/Plugin/views/field/Name.php @@ -10,6 +10,7 @@ use Drupal\user\Plugin\views\field\User; use Drupal\views\Plugin\views\display\DisplayPluginBase; use Drupal\Component\Annotation\PluginID; +use Drupal\views\ResultRow; use Drupal\views\ViewExecutable; /** @@ -74,7 +75,7 @@ public function buildOptionsForm(&$form, &$form_state) { parent::buildOptionsForm($form, $form_state); } - function render_link($data, $values) { + function render_link($data, ResultRow $values) { $account = entity_create('user', array()); $account->uid = $this->getValue($values, 'uid'); $account->name = $this->getValue($values); diff --git a/core/modules/user/lib/Drupal/user/Plugin/views/field/User.php b/core/modules/user/lib/Drupal/user/Plugin/views/field/User.php index 13edb18..d0ab1b9 100644 --- a/core/modules/user/lib/Drupal/user/Plugin/views/field/User.php +++ b/core/modules/user/lib/Drupal/user/Plugin/views/field/User.php @@ -10,6 +10,7 @@ use Drupal\views\Plugin\views\field\FieldPluginBase; use Drupal\views\Plugin\views\display\DisplayPluginBase; use Drupal\Component\Annotation\PluginID; +use Drupal\views\ResultRow; use Drupal\views\ViewExecutable; /** @@ -51,7 +52,7 @@ public function buildOptionsForm(&$form, &$form_state) { parent::buildOptionsForm($form, $form_state); } - function render_link($data, $values) { + function render_link($data, ResultRow $values) { if (!empty($this->options['link_to_user']) && user_access('access user profiles') && ($entity = $this->getEntity($values)) && $data !== NULL && $data !== '') { $this->options['alter']['make_link'] = TRUE; $uri = $entity->uri();