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 3eae3778ec6..0a8d2ace611 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 @@ class TitleLink extends FieldPluginBase { /** * {@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 7e55034e53a..72392134d92 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 @@ class Rss extends RowPluginBase { /** * {@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 e9143ae07f8..4f2275ed243 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 @@ class Comment extends FieldPluginBase { 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 08b9d8d45cc..2076ff8156f 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 5b2c61df815..ee2772b30c9 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 @@ class LastTimestamp extends Date { $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 d1e19f55a28..202a2240d0b 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 @@ class Link extends FieldPluginBase { 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 4417cfb13e3..6be3577a5d3 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 @@ class NcsLastCommentName extends FieldPluginBase { 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 55c366b85d2..6642db7531f 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 @@ use Drupal\Component\Annotation\PluginID; */ 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 cdb3786ff07..08ec430e108 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 @@ class NodeLink extends FieldPluginBase { 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 0c7fbff330f..8f0e0ec6d5f 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 @@ class NodeNewComments extends Numeric { 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 1b61c05fb71..43c3171ef35 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 @@ class Username extends FieldPluginBase { } } - 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 4ccc754a5bd..6da816115f1 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 @@ class CommentRow extends EntityRow { /** * {@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 3f19fa19e53..eeaec0b096d 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 @@ class Rss extends RowPluginBase { 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 2abd1600e4e..6a9d5a7e746 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 @@ class TranslationLink extends FieldPluginBase { /** * 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 7409dbb3521..bc4a34d9e7c 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 @@ class ContextualLinks extends FieldPluginBase { * @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 a6e38ceb298..ff98cfd1f3c 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 @@ class Extension extends FieldPluginBase { ); } - 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 22376c3551e..232fa71aa6a 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 @@ class File extends FieldPluginBase { 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 a63c2d6bddd..5b69e10eb28 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 @@ class FileMime extends File { 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 719f4d657cf..35179c4cf7f 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 @@ use Drupal\views\Plugin\views\field\FieldPluginBase; */ 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 4e5eb5f43c2..b568b0dc54b 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 @@ class Uri extends File { 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 e30f2069e81..ab81c8e71c5 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 @@ class HistoryUserTimestamp extends Node { 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 62bcaef4099..d1e9cc02aa0 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 @@ class LanguageField extends FieldPluginBase { ); } - 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 d76e41c134c..ff47cb23f07 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 @@ class Language extends Node { ); } - 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 8327bcf7f4a..a5ad276ac69 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 @@ class Link extends FieldPluginBase { $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 b446ed2a00e..0851b2537a2 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 @@ class Node extends FieldPluginBase { 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 a5c8e409037..78ff114e22c 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 @@ class Path extends FieldPluginBase { $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 6d31ae4ff1e..1ca5150549f 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 @@ class Type extends Node { 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 49cc52aa79f..4005bfaee30 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 @@ class Rss extends RowPluginBase { } } - 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 26e28f1dde8..92936946482 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 @@ class Score extends Numeric { } } - 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 1e42b803c15..f12e2c6e870 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 @@ class SearchRow extends RowPluginBase { /** * 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 7034aeeba16..00d6c7192f1 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 @@ class LinkEdit extends FieldPluginBase { $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 793c8dec361..65106d0d93d 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 @@ class Taxonomy extends FieldPluginBase { 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 6fe5c35dda9..1059263161c 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 @@ class Language extends User { 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 66564479aac..a7bdb247c9f 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 @@ class Link extends FieldPluginBase { /** * 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 13edb18d620..e6515a6eda5 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 @@ class User extends FieldPluginBase { 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 2e9a2163cb6..f0074fa67b1 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 @@ class UserData extends FieldPluginBase { /** * 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 72ccc548966..26844763d5a 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 @@ class Entity extends TokenizeAreaPluginBase { /** * 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 e339081e858..8b1e218edb9 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 @@ class Result extends AreaPluginBase { /** * 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 783f46a11be..645e10df10e 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 @@ class Text extends TokenizeAreaPluginBase { /** * 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 2b1762b581b..2b07806c5b5 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 @@ class TextCustom extends TokenizeAreaPluginBase { /** * 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 26cce1641d7..103df0ab6a6 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 @@ class View extends AreaPluginBase { /** * 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 f70df25d833..6f586af90d2 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 @@ class Boolean extends FieldPluginBase { 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 38982ee90aa..b1ce7aeb092 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 @@ class Custom extends FieldPluginBase { $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 5925990a4e2..654e27a97b5 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 @@ class Date extends FieldPluginBase { 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 0289031c35a..19d2d2b69da 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 @@ abstract class FieldPluginBase extends HandlerBase { * @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 98e19917c69..bcf2e714028 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 @@ class FileSize extends FieldPluginBase { ); } - 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 6632da429d6..f90b1a9d2eb 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 @@ class MachineName extends FieldPluginBase { $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 6e19dfd260e..24c98c18614 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 @@ class Markup extends FieldPluginBase { } } - 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 8687a2c6972..0ab6c6fb879 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 @@ class Numeric extends FieldPluginBase { 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 d1a90603658..2aa86390ee1 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 @@ class Serialized extends FieldPluginBase { } } - 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 e8c514c262d..a42de6f1a74 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 @@ class TimeInterval extends FieldPluginBase { ); } - 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 4399d599c02..9b727095ec1 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 @@ class Url extends FieldPluginBase { 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 572e709bdf9..9f1aa5e74c8 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 @@ use Drupal\Component\Annotation\PluginID; */ 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 7c317b6d38f..a7c41db1b70 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 @@ class Full extends SqlBase { /** * 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 acd16c015cb..70acf99c42b 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 @@ class Mini extends SqlBase { /** * 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 fed8f5ab35d..30c0b9d95e5 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 @@ abstract class PagerPluginBase extends PluginBase { * 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 10ae7928bd6..88654d020e7 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 @@ class EntityRow extends RowPluginBase { /** * 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 4a22155fc87..a7ce04b59f9 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 @@ abstract class RowPluginBase extends PluginBase { * @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 887ea5c1370..d051c54c486 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 @@ class RssFields extends RowPluginBase { 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 3d28046786e..05d5c2a9b65 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 @@ class DefaultSummary extends StylePluginBase { ); } - 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 3914fd863e1..101d32f3362 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 @@ abstract class Mapping extends StylePluginBase { * * 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 1db0c6f2305..3bea5bb1bf1 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 @@ class Rss extends StylePluginBase { 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 e271d8e8627..8165c878acd 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 @@ abstract class StylePluginBase extends PluginBase { /** * 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 9108376da35..fcee561d1ea 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 @@ class FieldTest extends FieldPluginBase { /** * Overrides Drupal\views\Plugin\views\field\FieldPluginBase::render(). */ - function render($values) { + public function render($values) { return $this->sanitizeValue($this->getTestValue()); }