Service/BlockVariableService.php
public function populateBlockVariables()
    {
        /** @var BlockVariableDocument $variable */
        foreach ($this->block->getVariables() as $variable) {
            $this->setBlockVariable($variable->getName(), $this->methodService->call($variable->getMethodArgument()));
        }
    }
public function populateBlockVariables()
    {
        /** @var BlockVariableDocument $variable */
        foreach ($this->block->getVariables() as $variable) {
            $this->setBlockVariable($variable->getName(), $this->methodService->call($variable->getMethodArgument()));
        }
    }
public function populateBlockVariables ( ) { /** @var BlockVariableDocument $variable */ foreach ( $ this -> block -> getVariables ( ) as $ variable ) { $ this -> setBlockVariable ( $ variable -> getName ( ) , $ this -> methodService -> call ( $ variable -> getMethodArgument ( ) ) ) ; } }
Sets the blocks viewVariables where the keys are the BlockVariableDocument names
and the values are the return of the associated method

@return ArrayCollection
Sets the blocks viewVariables where the keys are the BlockVariableDocument names and the values are the return of the associated method