public function toArray($printDefaults = false) { $array = parent::toArray($printDefaults); if ($this->getType() && $this->hasFieldType()) { $array['selection'] = $this->getFieldType()->getSelection(); } return $array; }