FluidTYPO3\Flux\Form::setExtensionName PHP Method

setExtensionName() public method

public setExtensionName ( string $extensionName ) : FluidTYPO3\Flux\Form\FormInterface
$extensionName string
return FluidTYPO3\Flux\Form\FormInterface
    public function setExtensionName($extensionName)
    {
        $this->extensionName = $extensionName;
        return $this;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Registers a Form instance to use when TCA for a model object class/table is requested.
  *
  * @param string $className
  * @param Form $form
  * @return void
  */
 public static function registerFormForModelObjectClassName($className, Form $form = NULL)
 {
     if (NULL !== $form && TRUE === isset($GLOBALS['_EXTKEY']) && NULL === $form->getExtensionName()) {
         $form->setExtensionName(GeneralUtility::underscoredToUpperCamelCase($GLOBALS['_EXTKEY']));
     }
     self::$forms['models'][$className] = $form;
 }