From 31efff2728da6350dba53ec20ec23817e40e9cbb Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Mon, 15 Jul 2013 18:39:32 -0400 Subject: [PATCH] Issue #2036087 by YesCT: Add public identifier to all render methods in all views plugins in core. --- .../lib/Drupal/aggregator/Plugin/views/field/TitleLink.php | 2 +- .../aggregator/lib/Drupal/aggregator/Plugin/views/row/Rss.php | 2 +- .../comment/lib/Drupal/comment/Plugin/views/field/Comment.php | 2 +- .../comment/lib/Drupal/comment/Plugin/views/field/Depth.php | 2 +- .../lib/Drupal/comment/Plugin/views/field/LastTimestamp.php | 2 +- .../comment/lib/Drupal/comment/Plugin/views/field/Link.php | 2 +- .../Drupal/comment/Plugin/views/field/NcsLastCommentName.php | 2 +- .../lib/Drupal/comment/Plugin/views/field/NodeComment.php | 2 +- .../comment/lib/Drupal/comment/Plugin/views/field/NodeLink.php | 2 +- .../lib/Drupal/comment/Plugin/views/field/NodeNewComments.php | 2 +- .../comment/lib/Drupal/comment/Plugin/views/field/Username.php | 2 +- .../comment/lib/Drupal/comment/Plugin/views/row/CommentRow.php | 2 +- .../modules/comment/lib/Drupal/comment/Plugin/views/row/Rss.php | 2 +- .../content_translation/Plugin/views/field/TranslationLink.php | 2 +- .../Drupal/contextual/Plugin/views/field/ContextualLinks.php | 2 +- .../file/lib/Drupal/file/Plugin/views/field/Extension.php | 2 +- core/modules/file/lib/Drupal/file/Plugin/views/field/File.php | 2 +- .../file/lib/Drupal/file/Plugin/views/field/FileMime.php | 2 +- core/modules/file/lib/Drupal/file/Plugin/views/field/Status.php | 2 +- core/modules/file/lib/Drupal/file/Plugin/views/field/Uri.php | 2 +- .../Drupal/history/Plugin/views/field/HistoryUserTimestamp.php | 2 +- .../lib/Drupal/language/Plugin/views/field/LanguageField.php | 2 +- .../node/lib/Drupal/node/Plugin/views/field/Language.php | 2 +- core/modules/node/lib/Drupal/node/Plugin/views/field/Link.php | 2 +- core/modules/node/lib/Drupal/node/Plugin/views/field/Node.php | 2 +- core/modules/node/lib/Drupal/node/Plugin/views/field/Path.php | 2 +- core/modules/node/lib/Drupal/node/Plugin/views/field/Type.php | 2 +- core/modules/node/lib/Drupal/node/Plugin/views/row/Rss.php | 2 +- .../search/lib/Drupal/search/Plugin/views/field/Score.php | 2 +- .../search/lib/Drupal/search/Plugin/views/row/SearchRow.php | 2 +- .../lib/Drupal/taxonomy/Plugin/views/field/LinkEdit.php | 2 +- .../lib/Drupal/taxonomy/Plugin/views/field/Taxonomy.php | 2 +- .../user/lib/Drupal/user/Plugin/views/field/Language.php | 2 +- core/modules/user/lib/Drupal/user/Plugin/views/field/Link.php | 2 +- core/modules/user/lib/Drupal/user/Plugin/views/field/User.php | 2 +- .../user/lib/Drupal/user/Plugin/views/field/UserData.php | 2 +- .../modules/views/lib/Drupal/views/Plugin/views/area/Entity.php | 2 +- .../modules/views/lib/Drupal/views/Plugin/views/area/Result.php | 2 +- core/modules/views/lib/Drupal/views/Plugin/views/area/Text.php | 2 +- .../views/lib/Drupal/views/Plugin/views/area/TextCustom.php | 2 +- core/modules/views/lib/Drupal/views/Plugin/views/area/View.php | 2 +- .../views/lib/Drupal/views/Plugin/views/field/Boolean.php | 2 +- .../views/lib/Drupal/views/Plugin/views/field/Custom.php | 2 +- core/modules/views/lib/Drupal/views/Plugin/views/field/Date.php | 2 +- .../lib/Drupal/views/Plugin/views/field/FieldPluginBase.php | 2 +- .../views/lib/Drupal/views/Plugin/views/field/FileSize.php | 2 +- .../views/lib/Drupal/views/Plugin/views/field/MachineName.php | 2 +- .../views/lib/Drupal/views/Plugin/views/field/Markup.php | 2 +- .../views/lib/Drupal/views/Plugin/views/field/Numeric.php | 2 +- .../views/lib/Drupal/views/Plugin/views/field/Serialized.php | 2 +- .../views/lib/Drupal/views/Plugin/views/field/TimeInterval.php | 2 +- core/modules/views/lib/Drupal/views/Plugin/views/field/Url.php | 2 +- core/modules/views/lib/Drupal/views/Plugin/views/field/Xss.php | 2 +- core/modules/views/lib/Drupal/views/Plugin/views/pager/Full.php | 2 +- core/modules/views/lib/Drupal/views/Plugin/views/pager/Mini.php | 2 +- .../lib/Drupal/views/Plugin/views/pager/PagerPluginBase.php | 2 +- .../views/lib/Drupal/views/Plugin/views/row/EntityRow.php | 2 +- .../views/lib/Drupal/views/Plugin/views/row/RowPluginBase.php | 2 +- .../views/lib/Drupal/views/Plugin/views/row/RssFields.php | 2 +- .../lib/Drupal/views/Plugin/views/style/DefaultSummary.php | 2 +- .../views/lib/Drupal/views/Plugin/views/style/Mapping.php | 2 +- core/modules/views/lib/Drupal/views/Plugin/views/style/Rss.php | 2 +- .../lib/Drupal/views/Plugin/views/style/StylePluginBase.php | 2 +- .../lib/Drupal/views_test_data/Plugin/views/field/FieldTest.php | 2 +- 64 files changed, 64 insertions(+), 64 deletions(-) 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 3eae3778ec6c..0a8d2ace6114 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 @@ -57,7 +57,7 @@ public function buildOptionsForm(&$form, &$form_state) { /** * {@inheritdoc} */ - function render($values) { + public function render($values) { $value = $this->getValue($values); return $this->render_link($this->sanitizeValue($value), $values); } diff --git a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/views/row/Rss.php b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/views/row/Rss.php index 7e55034e53a4..72392134d920 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/views/row/Rss.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/views/row/Rss.php @@ -71,7 +71,7 @@ public function buildOptionsForm(&$form, &$form_state) { /** * {@inheritdoc} */ - function render($row) { + public function render($row) { $entity = $row->_entity; $item = new \stdClass(); 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 e9143ae07f84..4f2275ed243e 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 @@ -79,7 +79,7 @@ function render_link($data, $values) { return $data; } - function render($values) { + public function render($values) { $value = $this->getValue($values); return $this->render_link($this->sanitizeValue($value), $values); } diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/Depth.php b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/Depth.php index 08b9d8d45ccd..2076ff8156f8 100644 --- a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/Depth.php +++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/Depth.php @@ -22,7 +22,7 @@ class Depth extends FieldPluginBase { /** * Work out the depth of this comment */ - function render($values) { + public function render($values) { $comment_thread = $this->getValue($values); return count(explode('.', $comment_thread)) - 1; } diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LastTimestamp.php b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LastTimestamp.php index 5b2c61df8157..ee2772b30c93 100644 --- a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LastTimestamp.php +++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LastTimestamp.php @@ -30,7 +30,7 @@ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$o $this->additional_fields['comment_count'] = 'comment_count'; } - function render($values) { + public function render($values) { $comment_count = $this->getValue($values, 'comment_count'); if (empty($this->options['empty_zero']) || $comment_count) { return parent::render($values); 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 d1e19f55a286..202a2240d0bb 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 @@ -42,7 +42,7 @@ public function buildOptionsForm(&$form, &$form_state) { public function query() {} - function render($values) { + public function render($values) { $comment = $this->getEntity($values); return $this->render_link($comment, $values); } diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/NcsLastCommentName.php b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/NcsLastCommentName.php index 4417cfb13e38..6be3577a5d30 100644 --- a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/NcsLastCommentName.php +++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/NcsLastCommentName.php @@ -56,7 +56,7 @@ protected function defineOptions() { return $options; } - function render($values) { + public function render($values) { if (!empty($this->options['link_to_user'])) { $account = entity_create('user', array()); $account->name = $this->getValue($values); diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/NodeComment.php b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/NodeComment.php index 55c366b85d23..6642db7531f7 100644 --- a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/NodeComment.php +++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/NodeComment.php @@ -19,7 +19,7 @@ */ class NodeComment extends FieldPluginBase { - function render($values) { + public function render($values) { $value = $this->getValue($values); switch ($value) { case COMMENT_NODE_HIDDEN: diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/NodeLink.php b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/NodeLink.php index cdb3786ff071..08ec430e1087 100644 --- a/core/modules/comment/lib/Drupal/comment/Plugin/views/field/NodeLink.php +++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/field/NodeLink.php @@ -38,7 +38,7 @@ public function buildOptionsForm(&$form, &$form_state) { public function query() {} - function render($values) { + public function render($values) { $node = $this->getEntity($values); comment_node_view($node, $this->options['teaser'] ? 'teaser' : 'full'); 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 0c7fbff330fb..8f0e0ec6d5f0 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 @@ -142,7 +142,7 @@ function render_link($data, $values) { return $data; } - function render($values) { + public function render($values) { $value = $this->getValue($values); if (!empty($value)) { return $this->render_link(parent::render($values), $values); 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 1b61c05fb71e..43c3171ef356 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 @@ -65,7 +65,7 @@ function render_link($data, $values) { } } - function render($values) { + public function render($values) { $value = $this->getValue($values); return $this->render_link($this->sanitizeValue($value), $values); } diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/views/row/CommentRow.php b/core/modules/comment/lib/Drupal/comment/Plugin/views/row/CommentRow.php index 4ccc754a5bdb..6da816115f12 100644 --- a/core/modules/comment/lib/Drupal/comment/Plugin/views/row/CommentRow.php +++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/row/CommentRow.php @@ -40,7 +40,7 @@ public function buildOptionsForm(&$form, &$form_state) { /** * {@inheritdoc} */ - function render($row) { + public function render($row) { $entity_id = $row->{$this->field_alias}; $build = $this->build[$entity_id]; if (!$this->options['links']) { diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/views/row/Rss.php b/core/modules/comment/lib/Drupal/comment/Plugin/views/row/Rss.php index 3f19fa19e53d..eeaec0b096d9 100644 --- a/core/modules/comment/lib/Drupal/comment/Plugin/views/row/Rss.php +++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/row/Rss.php @@ -87,7 +87,7 @@ function options_form_summary_options() { return $options; } - function render($row) { + public function render($row) { global $base_url; $cid = $row->{$this->field_alias}; 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 2abd1600e4eb..6a9d5a7e7464 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 @@ -44,7 +44,7 @@ public function buildOptionsForm(&$form, &$form_state) { /** * Overrides \Drupal\views\Plugin\views\field\FieldPluginBase::render(). */ - function render($values) { + public function render($values) { return $this->render_link($this->getEntity($values), $values); } diff --git a/core/modules/contextual/lib/Drupal/contextual/Plugin/views/field/ContextualLinks.php b/core/modules/contextual/lib/Drupal/contextual/Plugin/views/field/ContextualLinks.php index 7409dbb35210..bc4a34d9e7cf 100644 --- a/core/modules/contextual/lib/Drupal/contextual/Plugin/views/field/ContextualLinks.php +++ b/core/modules/contextual/lib/Drupal/contextual/Plugin/views/field/ContextualLinks.php @@ -68,7 +68,7 @@ public function preRender(&$values) { * @see contextual_preprocess() * @see contextual_contextual_links_view_alter() */ - function render($values) { + public function render($values) { $links = array(); foreach ($this->options['fields'] as $field) { $rendered_field = $this->view->style_plugin->getField($this->view->row_index, $field); diff --git a/core/modules/file/lib/Drupal/file/Plugin/views/field/Extension.php b/core/modules/file/lib/Drupal/file/Plugin/views/field/Extension.php index a6e38ceb2986..ff98cfd1f3c0 100644 --- a/core/modules/file/lib/Drupal/file/Plugin/views/field/Extension.php +++ b/core/modules/file/lib/Drupal/file/Plugin/views/field/Extension.php @@ -41,7 +41,7 @@ public function buildOptionsForm(&$form, &$form_state) { ); } - function render($values) { + public function render($values) { $value = $this->getValue($values); if (!$this->options['extension_detect_tar']) { if (preg_match('/\.([^\.]+)$/', $value, $match)) { 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 22376c3551e0..232fa71aa6ae 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 @@ -65,7 +65,7 @@ function render_link($data, $values) { return $data; } - function render($values) { + public function render($values) { $value = $this->getValue($values); return $this->render_link($this->sanitizeValue($value), $values); } diff --git a/core/modules/file/lib/Drupal/file/Plugin/views/field/FileMime.php b/core/modules/file/lib/Drupal/file/Plugin/views/field/FileMime.php index a63c2d6bddd5..5b69e10eb28d 100644 --- a/core/modules/file/lib/Drupal/file/Plugin/views/field/FileMime.php +++ b/core/modules/file/lib/Drupal/file/Plugin/views/field/FileMime.php @@ -33,7 +33,7 @@ public function buildOptionsForm(&$form, &$form_state) { parent::buildOptionsForm($form, $form_state); } - function render($values) { + public function render($values) { $data = $values->{$this->field_alias}; if (!empty($this->options['filemime_image']) && $data !== NULL && $data !== '') { $fake_file = (object) array('filemime' => $data); diff --git a/core/modules/file/lib/Drupal/file/Plugin/views/field/Status.php b/core/modules/file/lib/Drupal/file/Plugin/views/field/Status.php index 719f4d657cfc..35179c4cf7f5 100644 --- a/core/modules/file/lib/Drupal/file/Plugin/views/field/Status.php +++ b/core/modules/file/lib/Drupal/file/Plugin/views/field/Status.php @@ -19,7 +19,7 @@ */ class Status extends FieldPluginBase { - function render($values) { + public function render($values) { $value = $this->getValue($values); return _views_file_status($value); } diff --git a/core/modules/file/lib/Drupal/file/Plugin/views/field/Uri.php b/core/modules/file/lib/Drupal/file/Plugin/views/field/Uri.php index 4e5eb5f43c29..b568b0dc54b7 100644 --- a/core/modules/file/lib/Drupal/file/Plugin/views/field/Uri.php +++ b/core/modules/file/lib/Drupal/file/Plugin/views/field/Uri.php @@ -32,7 +32,7 @@ public function buildOptionsForm(&$form, &$form_state) { parent::buildOptionsForm($form, $form_state); } - function render($values) { + public function render($values) { $data = $values->{$this->field_alias}; if (!empty($this->options['file_download_path']) && $data !== NULL && $data !== '') { $data = file_create_url($data); diff --git a/core/modules/history/lib/Drupal/history/Plugin/views/field/HistoryUserTimestamp.php b/core/modules/history/lib/Drupal/history/Plugin/views/field/HistoryUserTimestamp.php index e30f2069e817..ab81c8e71c54 100644 --- a/core/modules/history/lib/Drupal/history/Plugin/views/field/HistoryUserTimestamp.php +++ b/core/modules/history/lib/Drupal/history/Plugin/views/field/HistoryUserTimestamp.php @@ -68,7 +68,7 @@ public function query() { parent::query(); } - function render($values) { + public function render($values) { // Let's default to 'read' state. // This code shadows node_mark, but it reads from the db directly and // we already have that info. diff --git a/core/modules/language/lib/Drupal/language/Plugin/views/field/LanguageField.php b/core/modules/language/lib/Drupal/language/Plugin/views/field/LanguageField.php index 62bcaef4099d..d1e9cc02aa01 100644 --- a/core/modules/language/lib/Drupal/language/Plugin/views/field/LanguageField.php +++ b/core/modules/language/lib/Drupal/language/Plugin/views/field/LanguageField.php @@ -36,7 +36,7 @@ public function buildOptionsForm(&$form, &$form_state) { ); } - function render($values) { + public function render($values) { // @todo: Drupal Core dropped native language until config translation is // ready, see http://drupal.org/node/1616594. $value = $this->getValue($values); diff --git a/core/modules/node/lib/Drupal/node/Plugin/views/field/Language.php b/core/modules/node/lib/Drupal/node/Plugin/views/field/Language.php index d76e41c134ca..ff47cb23f073 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/views/field/Language.php +++ b/core/modules/node/lib/Drupal/node/Plugin/views/field/Language.php @@ -36,7 +36,7 @@ public function buildOptionsForm(&$form, &$form_state) { ); } - function render($values) { + public function render($values) { // @todo: Drupal Core dropped native language until config translation is // ready, see http://drupal.org/node/1616594. $value = $this->getValue($values); 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 8327bcf7f4a6..a5ad276ac696 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 @@ -45,7 +45,7 @@ public function query() { $this->addAdditionalFields(); } - function render($values) { + public function render($values) { if ($entity = $this->getEntity($values)) { return $this->render_link($entity, $values); } 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 b446ed2a00e7..0851b2537a23 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 @@ -86,7 +86,7 @@ function render_link($data, $values) { return $data; } - function render($values) { + public function render($values) { $value = $this->getValue($values); return $this->render_link($this->sanitizeValue($value), $values); } diff --git a/core/modules/node/lib/Drupal/node/Plugin/views/field/Path.php b/core/modules/node/lib/Drupal/node/Plugin/views/field/Path.php index a5c8e4090377..78ff114e22c0 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/views/field/Path.php +++ b/core/modules/node/lib/Drupal/node/Plugin/views/field/Path.php @@ -53,7 +53,7 @@ public function query() { $this->addAdditionalFields(); } - function render($values) { + public function render($values) { $nid = $this->getValue($values, 'nid'); return url("node/$nid", array('absolute' => $this->options['absolute'])); } diff --git a/core/modules/node/lib/Drupal/node/Plugin/views/field/Type.php b/core/modules/node/lib/Drupal/node/Plugin/views/field/Type.php index 6d31ae4ff1ee..1ca5150549fd 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/views/field/Type.php +++ b/core/modules/node/lib/Drupal/node/Plugin/views/field/Type.php @@ -51,7 +51,7 @@ function render_name($data, $values) { return $this->sanitizeValue($data); } - function render($values) { + public function render($values) { $value = $this->getValue($values); return $this->render_link($this->render_name($value, $values), $values); } diff --git a/core/modules/node/lib/Drupal/node/Plugin/views/row/Rss.php b/core/modules/node/lib/Drupal/node/Plugin/views/row/Rss.php index 49cc52aa79f0..4005bfaee30a 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/views/row/Rss.php +++ b/core/modules/node/lib/Drupal/node/Plugin/views/row/Rss.php @@ -89,7 +89,7 @@ public function preRender($values) { } } - function render($row) { + public function render($row) { // For the most part, this code is taken from node_feed() in node.module global $base_url; diff --git a/core/modules/search/lib/Drupal/search/Plugin/views/field/Score.php b/core/modules/search/lib/Drupal/search/Plugin/views/field/Score.php index 26e28f1dde84..92936946482f 100644 --- a/core/modules/search/lib/Drupal/search/Plugin/views/field/Score.php +++ b/core/modules/search/lib/Drupal/search/Plugin/views/field/Score.php @@ -80,7 +80,7 @@ public function query() { } } - function render($values) { + public function render($values) { // Only render if we exist. if (isset($this->tableAlias)) { return parent::render($values); diff --git a/core/modules/search/lib/Drupal/search/Plugin/views/row/SearchRow.php b/core/modules/search/lib/Drupal/search/Plugin/views/row/SearchRow.php index 1e42b803c15e..f12e2c6e8708 100644 --- a/core/modules/search/lib/Drupal/search/Plugin/views/row/SearchRow.php +++ b/core/modules/search/lib/Drupal/search/Plugin/views/row/SearchRow.php @@ -42,7 +42,7 @@ public function buildOptionsForm(&$form, &$form_state) { /** * Override the behavior of the render() function. */ - function render($row) { + public function render($row) { return array( '#theme' => $this->themeFunctions(), '#view' => $this->view, diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/field/LinkEdit.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/field/LinkEdit.php index 7034aeeba16c..00d6c7192f1f 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/field/LinkEdit.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/field/LinkEdit.php @@ -53,7 +53,7 @@ public function query() { $this->addAdditionalFields(); } - function render($values) { + public function render($values) { // Check there is an actual value, as on a relationship there may not be. if ($tid = $this->getValue($values, 'tid')) { // Mock a term object for taxonomy_term_access(). Use machine name and 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 793c8dec361a..65106d0d93d8 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 @@ -87,7 +87,7 @@ function render_link($data, $values) { return $data; } - function render($values) { + public function render($values) { $value = $this->getValue($values); return $this->render_link($this->sanitizeValue($value), $values); } 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 6fe5c35dda96..1059263161ca 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 @@ -38,7 +38,7 @@ function render_link($data, $values) { return $this->sanitizeValue($lang->name); } - function render($values) { + public function render($values) { $value = $this->getValue($values); return $this->render_link($this->sanitizeValue($value), $values); } 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 66564479aacb..a7bdb247c9f7 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 @@ -59,7 +59,7 @@ public function query() { /** * Overrides \Drupal\views\Plugin\views\field\FieldPluginBase::render(). */ - function render($values) { + public function render($values) { return $this->render_link($this->getEntity($values), $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 13edb18d620d..e6515a6eda57 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 @@ -60,7 +60,7 @@ function render_link($data, $values) { return $data; } - function render($values) { + public function render($values) { $value = $this->getValue($values); return $this->render_link($this->sanitizeValue($value), $values); } diff --git a/core/modules/user/lib/Drupal/user/Plugin/views/field/UserData.php b/core/modules/user/lib/Drupal/user/Plugin/views/field/UserData.php index 2e9a2163cb64..f0074fa67b1d 100644 --- a/core/modules/user/lib/Drupal/user/Plugin/views/field/UserData.php +++ b/core/modules/user/lib/Drupal/user/Plugin/views/field/UserData.php @@ -77,7 +77,7 @@ public function buildOptionsForm(&$form, &$form_state) { /** * Overrides \Drupal\views\Plugin\views\field\FieldPluginBase::render(). */ - function render($values) { + public function render($values) { $uid = $this->getValue($values); $data = $this->userData->get($this->options['data_module'], $uid, $this->options['data_name']); diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/area/Entity.php b/core/modules/views/lib/Drupal/views/Plugin/views/area/Entity.php index 72ccc5489669..26844763d5ad 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/area/Entity.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/area/Entity.php @@ -91,7 +91,7 @@ protected function buildViewModeOptions() { /** * Overrides \Drupal\views\Plugin\views\area\AreaPluginBase::render(). */ - function render($empty = FALSE) { + public function render($empty = FALSE) { if (!$empty || !empty($this->options['empty'])) { $entity_id = $this->tokenizeValue($this->options['entity_id']); if ($entity = entity_load($this->entityType, $entity_id)) { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/area/Result.php b/core/modules/views/lib/Drupal/views/Plugin/views/area/Result.php index e339081e858b..8b1e218edb95 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/area/Result.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/area/Result.php @@ -58,7 +58,7 @@ public function buildOptionsForm(&$form, &$form_state) { /** * Implements \Drupal\views\Plugin\views\area\AreaPluginBase::render(). */ - function render($empty = FALSE) { + public function render($empty = FALSE) { // Must have options and does not work on summaries. if (!isset($this->options['content']) || $this->view->plugin_name == 'default_summary') { return array(); diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/area/Text.php b/core/modules/views/lib/Drupal/views/Plugin/views/area/Text.php index 783f46a11be9..645e10df10e3 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/area/Text.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/area/Text.php @@ -52,7 +52,7 @@ public function submitOptionsForm(&$form, &$form_state) { /** * Implements \Drupal\views\Plugin\views\area\AreaPluginBase::render(). */ - function render($empty = FALSE) { + public function render($empty = FALSE) { $format = isset($this->options['format']) ? $this->options['format'] : filter_default_format(); if (!$empty || !empty($this->options['empty'])) { return array( diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/area/TextCustom.php b/core/modules/views/lib/Drupal/views/Plugin/views/area/TextCustom.php index 2b1762b581b9..2b07806c5b5b 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/area/TextCustom.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/area/TextCustom.php @@ -43,7 +43,7 @@ public function buildOptionsForm(&$form, &$form_state) { /** * Implements \Drupal\views\Plugin\views\area\AreaPluginBase::render(). */ - function render($empty = FALSE) { + public function render($empty = FALSE) { if (!$empty || !empty($this->options['empty'])) { return array( '#markup' => $this->renderTextarea($this->options['content']), diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/area/View.php b/core/modules/views/lib/Drupal/views/Plugin/views/area/View.php index 26cce1641d75..103df0ab6a60 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/area/View.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/area/View.php @@ -56,7 +56,7 @@ public function buildOptionsForm(&$form, &$form_state) { /** * Implements \Drupal\views\Plugin\views\area\AreaPluginBase::render(). */ - function render($empty = FALSE) { + public function render($empty = FALSE) { if (!empty($this->options['view_to_insert'])) { list($view_name, $display_id) = explode(':', $this->options['view_to_insert']); diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/field/Boolean.php b/core/modules/views/lib/Drupal/views/Plugin/views/field/Boolean.php index f70df25d8332..6f586af90d21 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/field/Boolean.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/field/Boolean.php @@ -100,7 +100,7 @@ public function buildOptionsForm(&$form, &$form_state) { parent::buildOptionsForm($form, $form_state); } - function render($values) { + public function render($values) { $value = $this->getValue($values); if (!empty($this->options['not'])) { $value = !$value; diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/field/Custom.php b/core/modules/views/lib/Drupal/views/Plugin/views/field/Custom.php index 38982ee90aa6..b1ce7aeb0924 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/field/Custom.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/field/Custom.php @@ -41,7 +41,7 @@ public function buildOptionsForm(&$form, &$form_state) { $form['#pre_render'][] = array($this, 'preRenderCustomForm'); } - function render($values) { + public function render($values) { // Return the text, so the code never thinks the value is empty. return $this->options['alter']['text']; } diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/field/Date.php b/core/modules/views/lib/Drupal/views/Plugin/views/field/Date.php index 5925990a4e24..654e27a97b56 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/field/Date.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/field/Date.php @@ -129,7 +129,7 @@ public function buildOptionsForm(&$form, &$form_state) { parent::buildOptionsForm($form, $form_state); } - function render($values) { + public function render($values) { $value = $this->getValue($values); $format = $this->options['date_format']; if (in_array($format, array('custom', 'raw time ago', 'time ago', 'raw time hence', 'time hence', 'raw time span', 'time span', 'raw time span', 'inverse time span', 'time span'))) { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php index 0289031c35af..19d2d2b69dae 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php @@ -1097,7 +1097,7 @@ public function preRender(&$values) { } * @param $values * The values retrieved from the database. */ - function render($values) { + public function render($values) { $value = $this->getValue($values); return $this->sanitizeValue($value); } diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/field/FileSize.php b/core/modules/views/lib/Drupal/views/Plugin/views/field/FileSize.php index 98e19917c693..bcf2e7140285 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/field/FileSize.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/field/FileSize.php @@ -38,7 +38,7 @@ public function buildOptionsForm(&$form, &$form_state) { ); } - function render($values) { + public function render($values) { $value = $this->getValue($values); if ($value) { switch ($this->options['file_size_display']) { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/field/MachineName.php b/core/modules/views/lib/Drupal/views/Plugin/views/field/MachineName.php index 6632da429d69..f90b1a9d2ebd 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/field/MachineName.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/field/MachineName.php @@ -66,7 +66,7 @@ public function preRender(&$values) { $this->getValueOptions(); } - function render($values) { + public function render($values) { $value = $values->{$this->field_alias}; if (!empty($this->options['machine_name']) || !isset($this->value_options[$value])) { $result = check_plain($value); diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/field/Markup.php b/core/modules/views/lib/Drupal/views/Plugin/views/field/Markup.php index 6e19dfd260e2..24c98c186142 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/field/Markup.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/field/Markup.php @@ -40,7 +40,7 @@ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$o } } - function render($values) { + public function render($values) { $value = $this->getValue($values); if (is_array($this->format)) { $format = $this->getValue($values, 'format'); diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/field/Numeric.php b/core/modules/views/lib/Drupal/views/Plugin/views/field/Numeric.php index 8687a2c69725..0ab6c6fb8796 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/field/Numeric.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/field/Numeric.php @@ -124,7 +124,7 @@ public function buildOptionsForm(&$form, &$form_state) { parent::buildOptionsForm($form, $form_state); } - function render($values) { + public function render($values) { $value = $this->getValue($values); if (!empty($this->options['set_precision'])) { $value = number_format($value, $this->options['precision'], $this->options['decimal'], $this->options['separator']); diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/field/Serialized.php b/core/modules/views/lib/Drupal/views/Plugin/views/field/Serialized.php index d1a906036583..2aa86390ee1d 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/field/Serialized.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/field/Serialized.php @@ -59,7 +59,7 @@ public function validateOptionsForm(&$form, &$form_state) { } } - function render($values) { + public function render($values) { $value = $values->{$this->field_alias}; if ($this->options['format'] == 'unserialized') { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/field/TimeInterval.php b/core/modules/views/lib/Drupal/views/Plugin/views/field/TimeInterval.php index e8c514c262d3..a42de6f1a747 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/field/TimeInterval.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/field/TimeInterval.php @@ -37,7 +37,7 @@ public function buildOptionsForm(&$form, &$form_state) { ); } - function render($values) { + public function render($values) { $value = $values->{$this->field_alias}; return format_interval($value, isset($this->options['granularity']) ? $this->options['granularity'] : 2); } diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/field/Url.php b/core/modules/views/lib/Drupal/views/Plugin/views/field/Url.php index 4399d599c025..9b727095ec1f 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/field/Url.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/field/Url.php @@ -38,7 +38,7 @@ public function buildOptionsForm(&$form, &$form_state) { parent::buildOptionsForm($form, $form_state); } - function render($values) { + public function render($values) { $value = $this->getValue($values); if (!empty($this->options['display_as_link'])) { return l($this->sanitizeValue($value), $value, array('html' => TRUE)); diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/field/Xss.php b/core/modules/views/lib/Drupal/views/Plugin/views/field/Xss.php index 572e709bdf9b..9f1aa5e74c8e 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/field/Xss.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/field/Xss.php @@ -19,7 +19,7 @@ */ class Xss extends FieldPluginBase { - function render($values) { + public function render($values) { $value = $this->getValue($values); return $this->sanitizeValue($value, 'xss'); } diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/pager/Full.php b/core/modules/views/lib/Drupal/views/Plugin/views/pager/Full.php index 7c317b6d38fe..a7c41db1b700 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/pager/Full.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/pager/Full.php @@ -80,7 +80,7 @@ public function summaryTitle() { /** * Overrides \Drupal\views\Plugin\views\pager\PagerPluginBase::render(). */ - function render($input) { + public function render($input) { $pager_theme = $this->view->buildThemeFunctions('pager'); // The 0, 1, 3, 4 indexes are correct. See the template_preprocess_pager() // documentation. diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/pager/Mini.php b/core/modules/views/lib/Drupal/views/Plugin/views/pager/Mini.php index acd16c015cbd..70acf99c42b4 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/pager/Mini.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/pager/Mini.php @@ -95,7 +95,7 @@ public function postExecute(&$result) { /** * Overrides \Drupal\views\Plugin\views\pager\PagerPluginBase::render(). */ - function render($input) { + public function render($input) { // The 1, 3 indexes are correct, see template_preprocess_pager(). $tags = array( 1 => $this->options['tags']['previous'], diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/pager/PagerPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/pager/PagerPluginBase.php index fed8f5ab35d2..30c0b9d95e52 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/pager/PagerPluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/pager/PagerPluginBase.php @@ -226,7 +226,7 @@ public function preRender(&$result) { } * Any extra GET parameters that should be retained, such as exposed * input. */ - function render($input) { } + public function render($input) { } /** * Determine if there are more records available. diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/row/EntityRow.php b/core/modules/views/lib/Drupal/views/Plugin/views/row/EntityRow.php index 10ae7928bd6d..88654d020e74 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/row/EntityRow.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/row/EntityRow.php @@ -164,7 +164,7 @@ public function preRender($result) { /** * Overrides Drupal\views\Plugin\views\row\RowPluginBase::render(). */ - function render($row) { + public function render($row) { $entity_id = $row->{$this->field_alias}; return $this->build[$entity_id]; } diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/row/RowPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/row/RowPluginBase.php index 4a22155fc872..a7ce04b59f97 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/row/RowPluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/row/RowPluginBase.php @@ -147,7 +147,7 @@ public function preRender($result) { } * @return string * The rendered output of a single row, used by the style plugin. */ - function render($row) { + public function render($row) { return array( '#theme' => $this->themeFunctions(), '#view' => $this->view, diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/row/RssFields.php b/core/modules/views/lib/Drupal/views/Plugin/views/row/RssFields.php index 887ea5c13701..d051c54c4868 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/row/RssFields.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/row/RssFields.php @@ -126,7 +126,7 @@ public function validate() { return $errors; } - function render($row) { + public function render($row) { static $row_index; if (!isset($row_index)) { $row_index = 0; diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/style/DefaultSummary.php b/core/modules/views/lib/Drupal/views/Plugin/views/style/DefaultSummary.php index 3d28046786e6..05d5c2a9b65a 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/style/DefaultSummary.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/style/DefaultSummary.php @@ -77,7 +77,7 @@ public function buildOptionsForm(&$form, &$form_state) { ); } - function render() { + public function render() { $rows = array(); foreach ($this->view->result as $row) { // @todo: Include separator as an option. diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/style/Mapping.php b/core/modules/views/lib/Drupal/views/Plugin/views/style/Mapping.php index 3914fd863e15..101d32f33627 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/style/Mapping.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/style/Mapping.php @@ -131,7 +131,7 @@ public function buildOptionsForm(&$form, &$form_state) { * * Provides the mapping definition as an available variable. */ - function render() { + public function render() { return array( '#theme' => $this->themeFunctions(), '#view' => $this->view, diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/style/Rss.php b/core/modules/views/lib/Drupal/views/Plugin/views/style/Rss.php index 1db0c6f23053..3bea5bb1bf1f 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/style/Rss.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/style/Rss.php @@ -111,7 +111,7 @@ public function getDescription() { return $description; } - function render() { + public function render() { if (empty($this->view->rowPlugin)) { debug('Drupal\views\Plugin\views\style\Rss: Missing row plugin'); return; diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/style/StylePluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/style/StylePluginBase.php index e271d8e86277..8165c878acdd 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/style/StylePluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/style/StylePluginBase.php @@ -425,7 +425,7 @@ protected function renderRowGroup(array $rows = array()) { /** * Render the display in this style. */ - function render() { + public function render() { if ($this->usesRowPlugin() && empty($this->view->rowPlugin)) { debug('Drupal\views\Plugin\views\style\StylePluginBase: Missing row plugin'); return; diff --git a/core/modules/views/tests/modules/views_test_data/lib/Drupal/views_test_data/Plugin/views/field/FieldTest.php b/core/modules/views/tests/modules/views_test_data/lib/Drupal/views_test_data/Plugin/views/field/FieldTest.php index 9108376da355..fcee561d1ea1 100644 --- a/core/modules/views/tests/modules/views_test_data/lib/Drupal/views_test_data/Plugin/views/field/FieldTest.php +++ b/core/modules/views/tests/modules/views_test_data/lib/Drupal/views_test_data/Plugin/views/field/FieldTest.php @@ -52,7 +52,7 @@ protected function addSelfTokens(&$tokens, $item) { /** * Overrides Drupal\views\Plugin\views\field\FieldPluginBase::render(). */ - function render($values) { + public function render($values) { return $this->sanitizeValue($this->getTestValue()); } -- GitLab