Inheritance: implements Jarves\ContentTypes\TypeInterface
Beispiel #1
0
 public function setContent(ContentInterface $content)
 {
     parent::setContent($content);
     $this->plugin = json_decode($content->getContent(), 1);
     $this->bundleName = $this->plugin['bundle'] ?: $this->plugin['module'];
     //module for BC
 }
Beispiel #2
0
 /**
  * @param string $type
  * @param AbstractType $contentType
  */
 public function addType($type, $contentType)
 {
     $this->types[$type] = $contentType;
     if ($contentType instanceof ContentRendererAwareContentType) {
         $contentType->setContentRenderer($this);
     }
 }