/** * {@inheritdoc} */ public function hasLayoutUpdates(LayoutItemInterface $item) { $idOrAlias = $item->getAlias() ?: $item->getId(); return !empty($this->layoutUpdates[$idOrAlias]); }
/** * @param LayoutManipulatorInterface $layoutManipulator * @param LayoutItemInterface $item */ public function callbackFunction(LayoutManipulatorInterface $layoutManipulator, LayoutItemInterface $item) { $layoutManipulator->add('id', $item->getId(), $item->getTypeName()); }
/** * {@inheritdoc} */ public function hasLayoutUpdates(LayoutItemInterface $item) { $idOrAlias = $item->getAlias() ?: $item->getId(); return isset($this->layoutUpdateServiceIds[$idOrAlias]); }
/** * {@inheritdoc} */ public function hasLayoutUpdates(LayoutItemInterface $item) { $idOrAlias = $item->getAlias() ?: $item->getId(); if (null === $this->layoutUpdates) { $this->initLayoutUpdates($item->getContext()); } return !empty($this->layoutUpdates[$idOrAlias]); }