FluidTYPO3\Flux\Form::getOption PHP Method

getOption() public method

public getOption ( string $name ) : mixed
$name string
return mixed
    public function getOption($name)
    {
        return ObjectAccess::getPropertyPath($this->options, $name);
    }

Usage Example

Beispiel #1
0
 /**
  * @param Form $form
  * @return string
  */
 public function render(Form $form)
 {
     $record = $form->getOption(Form::OPTION_RECORD);
     $table = $form->getOption(Form::OPTION_RECORD_TABLE);
     $field = $form->getOption(Form::OPTION_RECORD_FIELD);
     $node = $this->getNodeFactory()->create(array('type' => 'flex', 'renderType' => 'flex', 'flexFormDataStructureArray' => $form->build(), 'tableName' => $table, 'fieldName' => $field, 'databaseRow' => $record, 'inlineStructure' => array(), 'parameterArray' => array('itemFormElName' => sprintf('data[%s][%d][%s]', $table, (int) $record['uid'], $field), 'itemFormElValue' => GeneralUtility::xml2array($record[$field]), 'fieldChangeFunc' => array(), 'fieldConf' => array('config' => array('ds' => $form->build())))));
     $output = $node->render();
     return $output['html'];
 }
All Usage Examples Of FluidTYPO3\Flux\Form::getOption