Skip to content
Snippets Groups Projects
Commit 7528f36b authored by catch's avatar catch
Browse files

Issue #2183419 by kgoel: In StylePluginBase Rename Views properties to core standards.

parent 49c1c1e2
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ abstract class StylePluginBase extends PluginBase { ...@@ -37,7 +37,7 @@ abstract class StylePluginBase extends PluginBase {
/** /**
* Store all available tokens row rows. * Store all available tokens row rows.
*/ */
var $row_tokens = array(); protected $rowTokens = array();
/** /**
* Does the style plugin allows to use style plugins. * Does the style plugin allows to use style plugins.
...@@ -201,7 +201,7 @@ public function getRowClass($row_index) { ...@@ -201,7 +201,7 @@ public function getRowClass($row_index) {
public function tokenizeValue($value, $row_index) { public function tokenizeValue($value, $row_index) {
if (strpos($value, '[') !== FALSE || strpos($value, '!') !== FALSE || strpos($value, '%') !== FALSE) { if (strpos($value, '[') !== FALSE || strpos($value, '!') !== FALSE || strpos($value, '%') !== FALSE) {
// Row tokens might be empty, for example for node row style. // Row tokens might be empty, for example for node row style.
$tokens = isset($this->row_tokens[$row_index]) ? $this->row_tokens[$row_index] : array(); $tokens = isset($this->rowTokens[$row_index]) ? $this->rowTokens[$row_index] : array();
if (!empty($this->view->build_info['substitutions'])) { if (!empty($this->view->build_info['substitutions'])) {
$tokens += $this->view->build_info['substitutions']; $tokens += $this->view->build_info['substitutions'];
} }
...@@ -632,7 +632,7 @@ protected function renderFields(array $result) { ...@@ -632,7 +632,7 @@ protected function renderFields(array $result) {
$this->rendered_fields[$count][$id] = $this->view->field[$id]->theme($row); $this->rendered_fields[$count][$id] = $this->view->field[$id]->theme($row);
} }
$this->row_tokens[$count] = $this->view->field[$id]->getRenderTokens(array()); $this->rowTokens[$count] = $this->view->field[$id]->getRenderTokens(array());
} }
} }
unset($this->view->row_index); unset($this->view->row_index);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment