示例#1
0
 /**
  * {@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]);
 }
示例#4
0
 /**
  * {@inheritdoc}
  */
 public function hasLayoutUpdates(LayoutItemInterface $item)
 {
     $idOrAlias = $item->getAlias() ?: $item->getId();
     if (null === $this->layoutUpdates) {
         $this->initLayoutUpdates($item->getContext());
     }
     return !empty($this->layoutUpdates[$idOrAlias]);
 }