/**
  * {@inheritdoc}
  */
 public function getOptions($id)
 {
     try {
         return $this->rawLayout->getProperty($id, RawLayout::OPTIONS);
     } catch (\Exception $e) {
         throw new Exception\LogicException(sprintf('Cannot get options for "%s" item. Reason: %s', $id, $e->getMessage()), 0, $e);
     }
 }
Exemple #2
0
 /**
  * {@inheritdoc}
  */
 public function getTypeName()
 {
     $blockType = $this->rawLayout->getProperty($this->id, RawLayout::BLOCK_TYPE, true);
     return $blockType instanceof BlockTypeInterface ? $blockType->getName() : $blockType;
 }
Exemple #3
0
 /**
  * {@inheritdoc}
  */
 public function getOptions()
 {
     return $this->rawLayout->getProperty($this->id, RawLayout::RESOLVED_OPTIONS, true);
 }