protected function initData() { $this->defineData('title', '\\BackBee\\ClassContent\\Element\\Text', array('default' => array('value' => 'Title here'), 'label' => 'Title', 'maxentry' => 1, 'parameters' => array('aloha' => 'lite', 'editable' => true)))->defineData('body', '\\BackBee\\ClassContent\\ContentSet', array())->defineData('permid', 'scalar'); $this->defineParam('excludefromautobloc', ['rendertype' => 'checkbox', 'label' => 'Exclude from autoblocs', 'default' => false, 'value' => null]); $this->defineProperty('name', 'Mock Content')->defineProperty('description', 'Basic content yml')->defineProperty('category', array(0 => 'Mocks'))->defineProperty('indexation', array(0 => array(0 => 'title->value'))); parent::initData(); }
/** * {@inheritdoc} */ protected function initData() { if (null === $this->getProperty('auto_hydrate')) { $this->setProperty('auto_hydrate', false); } parent::initData(); }