Skip to content

Commit

Permalink
fixed renaming #1070
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed Nov 1, 2016
1 parent d64a398 commit 724cc9c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion envs/dev/blocks/ConcreptImplementationBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public function setPlaceholderValues(array $placeholders)
*
* @return array
*/
public function extraVarsExport()
public function getExtraVarsExport()
{
return ['foo' => 'bar'];
}
Expand Down
2 changes: 1 addition & 1 deletion modules/cms/src/base/BlockInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function setPlaceholderValues(array $placeholders);
*
* @return array
*/
public function extraVarsExport();
public function getExtraVarsExport();

/**
* Returns all config vars element of key value pairing to pass to the API and frontend.
Expand Down
2 changes: 1 addition & 1 deletion modules/cms/src/base/InternalBaseBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ public function addExtraVar($key, $value)
private $_extraVars = [];

// access from outside
public function extraVarsExport()
public function getExtraVarsExport()
{
$this->_extraVars = ArrayHelper::merge($this->_extraVars, $this->extraVars());
return $this->_extraVars;
Expand Down
2 changes: 1 addition & 1 deletion modules/cms/src/base/TwigBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function renderFrontend()
'vars' => $this->getVarValues(),
'cfgs' => $this->getCfgValues(),
'placeholders' => $this->getPlaceholderValues(),
'extras' => $this->extraVarsExport(),
'extras' => $this->getExtraVarsExport(),
]);
}

Expand Down
2 changes: 1 addition & 1 deletion modules/cms/src/models/NavItemPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ public static function getBlock($blockId)
'twig_admin' => $blockObject->renderAdmin(),
'vars' => $blockObject->getVarsExport(),
'cfgs' => $blockObject->getCfgsExport(),
'extras' => $blockObject->extraVarsExport(),
'extras' => $blockObject->getExtraVarsExport(),
'values' => $blockItem['json_config_values'],
'field_help' => $blockObject->getFieldHelp(),
'cfgvalues' => $blockItem['json_config_cfg_values'], // add: t1_json_config_cfg_values
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public function setPlaceholderValues(array $placeholders)
*
* @return array
*/
public function extraVarsExport()
public function getExtraVarsExport()
{
return ['foo' => 'bar'];
}
Expand Down

0 comments on commit 724cc9c

Please sign in to comment.