Drupal 8  8.0.2
HtmlEntityFormController Class Reference
Inheritance diagram for HtmlEntityFormController:

Public Member Functions

 __construct (ControllerResolverInterface $resolver, FormBuilderInterface $form_builder, EntityManagerInterface $manager)
 
- Public Member Functions inherited from FormController
 __construct (ControllerResolverInterface $controller_resolver, FormBuilderInterface $form_builder)
 
 getContentResult (Request $request, RouteMatchInterface $route_match)
 

Protected Member Functions

 getFormArgument (RouteMatchInterface $route_match)
 
 getFormObject (RouteMatchInterface $route_match, $form_arg)
 
- Protected Member Functions inherited from FormController
 getFormArgument (RouteMatchInterface $route_match)
 
 getFormObject (RouteMatchInterface $route_match, $form_arg)
 

Protected Attributes

 $entityManager
 
- Protected Attributes inherited from FormController
 $controllerResolver
 
 $formBuilder
 

Detailed Description

Wrapping controller for entity forms that serve as the main page body.

Constructor & Destructor Documentation

__construct ( ControllerResolverInterface  $resolver,
FormBuilderInterface  $form_builder,
EntityManagerInterface  $manager 
)

Constructs a new object.

Parameters
\Drupal\Core\Controller\ControllerResolverInterface$resolverThe controller resolver.
\Drupal\Core\Form\FormBuilderInterface$form_builderThe form builder.
\Drupal\Core\Entity\EntityManagerInterface$managerThe entity manager.

References Drupal\entityManager().

Here is the call graph for this function:

Member Function Documentation

getFormArgument ( RouteMatchInterface  $route_match)
protected

{}

References RouteMatchInterface\getRouteObject().

Here is the call graph for this function:

getFormObject ( RouteMatchInterface  $route_match,
  $form_arg 
)
protected

{}

Instead of a class name or service ID, $form_arg will be a string representing the entity and operation being performed. Consider the following route:

path: '/foo/{node}/bar'
defaults:
_entity_form: 'node.edit'

This means that the edit form for the node entity will used. If the entity type has a default form, only the name of the entity {param} needs to be passed:

path: '/foo/{node}/baz'
defaults:
_entity_form: 'node'

References Drupal\entityManager().

Here is the call graph for this function:


The documentation for this class was generated from the following file: