LayoutBuilderHtmlEntityFormController
class LayoutBuilderHtmlEntityFormController extends FormController (View source)
Overrides the entity form controller service for layout builder operations.
Traits
Provides dependency injection friendly methods for serialization.
Provides dependency injection friendly methods for serialization.
Properties
| protected array | $_serviceIds | An array of service IDs keyed by property name used for serialization. |
from DependencySerializationTrait |
| protected array | $_entityStorages | An array of entity type IDs keyed by the property name of their storages. |
from DependencySerializationTrait |
| protected ArgumentResolverInterface | $argumentResolver | The argument resolver. |
from FormController |
| protected FormBuilderInterface | $formBuilder | The form builder. |
from FormController |
| protected FormController | $entityFormController | The entity form controller being decorated. |
Methods
Constructs a LayoutBuilderHtmlEntityFormController object.
Invokes the form and returns the result.
Returns the object used to build the form.
Details
__sleep()
{@inheritdoc}
__wakeup()
{@inheritdoc}
__construct(FormController $entity_form_controller)
Constructs a LayoutBuilderHtmlEntityFormController object.
array
getContentResult(Request $request, RouteMatchInterface $route_match)
Invokes the form and returns the result.
protected string
getFormArgument(RouteMatchInterface $route_match)
Extracts the form argument string from a request.
Depending on the type of form the argument string may be stored in a different request attribute.
One example of a route definition is given below.
protected FormInterface
getFormObject(RouteMatchInterface $route_match, string $form_arg)
Returns the object used to build the form.