/** * {@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); }