/** * {@inheritdoc} */ public function preprocess(array &$variables, $hook, array $info) { $vars = Variables::create($variables); if ($vars->element) { $this->preprocessElement($vars, $hook, $info); } $this->preprocessVariables($vars, $hook, $info); }
/** * {@inheritdoc} */ public function preprocess(array &$variables, $hook, array $info) { $this->hook = $hook; $this->info = $info; $this->variables = Variables::create($variables); if ($this->variables->element) { $this->preprocessElement($this->variables->element, $this->variables); } $this->preprocessVariables($this->variables); }