/** * Executes an action on layout object * * @param LayoutInterface $layout * @param ProcessorInterface $processor * @return $this */ public function execute(LayoutInterface $layout, ProcessorInterface $processor) { if (!empty($this->options['ifconfig']) && !Mage::getStoreConfigFlag($this->options['ifconfig'])) { return $this; } $callback = $this->callback; $block = $layout->findBlockById($this->getBlockId()); if ($block !== false) { $callback($block); } return $this; }