예제 #1
0
 /**
  * @return array
  */
 public function getField()
 {
     $fieldset = $this->field->getFieldset();
     $fieldsInFieldset = array();
     foreach ($fieldset->getFields() as $field) {
         $fieldsInFieldset[] = $field->getIdentifier();
     }
     return array('identifier' => $this->field->getIdentifier(), 'formType' => 'fieldset', 'formAttributes' => array('childFields' => $fieldsInFieldset, 'label' => false, 'title' => $fieldset->getName(), 'fieldsetId' => '_fieldset_' . $fieldset->getId(), 'description' => $fieldset->getDescription(), 'attr' => array('help_text' => $this->field->getDescription())));
 }