FluidTYPO3\Flux\Form\AbstractFormComponent::create PHP Method

create() public static method

public static create ( array $settings = [] ) : FluidTYPO3\Flux\Form\FormInterface
$settings array
return FluidTYPO3\Flux\Form\FormInterface
    public static function create(array $settings = array())
    {
        /** @var ObjectManagerInterface $objectManager */
        $objectManager = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
        $className = get_called_class();
        /** @var FormInterface $object */
        $object = $objectManager->get($className);
        return $object->modify($settings);
    }