/** * {@inheritdoc} */ public function toArray($printDefaults = false) { $array = parent::toArray($printDefaults); $array['key'] = $this->getKey(); return $array; }
/** * @param bool $printDefaults * * @return array */ public function toArray($printDefaults = false) { $array = parent::toArray($printDefaults); if ($this->getType() && $this->hasFieldType()) { $array['selection'] = $this->getFieldType()->getSelection(); } return $array; }
/** * @param bool $printDefaults * @return array */ public function toArray($printDefaults = false) { $value['name'] = $this->getBundleName(); $value['class'] = get_class($this->getBundleClass()); $value = array_merge($value, parent::toArray($printDefaults)); return $value; }