CRUDlex\ControllerProvider::create PHP Method

create() public method

The controller for the "create" action.
public create ( Silex\Application $app, string $entity ) : Response
$app Silex\Application the Silex application
$entity string the current entity
return Symfony\Component\HttpFoundation\Response the HTTP response of this action
    public function create(Application $app, $entity)
    {
        $crudData = $app['crud']->getData($entity);
        $instance = $crudData->createEmpty();
        return $this->modifyEntity($app, $crudData, $instance, $entity, false);
    }