Exemple #1
0
 /**
  * @param Field  $field
  * @param Module $module
  * @param array  $options
  *
  * @return array | null
  */
 public function getField(Field $field, Module $module, array $options = array())
 {
     $id = $field->getServiceId() ? $field->getServiceId() : 'standard';
     foreach ($this->fields as $fieldClass) {
         if ($fieldClass->getType() == $id) {
             $fieldClass->setup($field, $module, $options);
             return $fieldClass->getField();
         }
     }
 }