예제 #1
0
 /**
  * {@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);
     }
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 public function getTypeName()
 {
     $blockType = $this->rawLayout->getProperty($this->id, RawLayout::BLOCK_TYPE, true);
     return $blockType instanceof BlockTypeInterface ? $blockType->getName() : $blockType;
 }
예제 #3
0
파일: Block.php 프로젝트: ramunasd/platform
 /**
  * {@inheritdoc}
  */
 public function getOptions()
 {
     return $this->rawLayout->getProperty($this->id, RawLayout::RESOLVED_OPTIONS, true);
 }