/** * @param IconManagerInterface $manager */ public function __construct(IconManagerInterface $manager) { parent::__construct($manager); $this->addFunction('icon', [$this, 'renderIcon']); }
/** * @param ButtonManagerInterface $manager */ public function __construct(ButtonManagerInterface $manager) { parent::__construct($manager); $this->addFunction('text_button', [$this, 'renderTextButton']); $this->addFunction('icon_button', [$this, 'renderIconButton']); }