item = Item\ItemFactory::getItem($type); $this->defaultData = array_merge($this->defaultData, $this->item->getValues()); $container->add($this); } public function getData() { return array( 'type' => $this->item->getType(), 'values' => parent::getData() ); } public function getLabel() { return $this->item->getTitle(); } public function getLayerProperties() { return $this->item->getLayerProperties(); } }