/** * Executes an action on layout object * * @param LayoutInterface $layout * @param ProcessorInterface $processor * @return $this */ public function execute(LayoutInterface $layout, ProcessorInterface $processor) { $loader = $layout->getLoader(); if (!$loader->isLoaded($this->handle)) { $loader->loadIntoProcessor($this->handle, $processor, $layout->getUpdate()->getIndex(UpdateInterface::INDEX_NORMAL)); } return $this; }