protected function getEntityFormOptions($entity, $view)
    {
        $formOptions = $this->entity[$view]['form_options'];
        $formOptions['entity'] = $this->entity['name'];
        $formOptions['view'] = $view;

        return $formOptions;
    }
protected function getEntityFormOptions($entity, $view)
    {
        $formOptions = $this->entity[$view]['form_options'];
        $formOptions['entity'] = $this->entity['name'];
        $formOptions['view'] = $view;

        return $formOptions;
    }
protected function getEntityFormOptions ( $ entity , $ view ) { $ formOptions = $ this -> entity [ $ view ] [ 'form_options' ] ; $ formOptions [ 'entity' ] = $ this -> entity [ 'name' ] ; $ formOptions [ 'view' ] = $ view ; return $ formOptions ; }
Retrieves the list of form options before sending them to the form builder.
This allows adding dynamic logic to the default form options.

@param object $entity
@param string $view

@return array
Retrieves the list of form options before sending them to the form builder . This allows adding dynamic logic to the default form options .