function WorkspacesHtmlEntityFormController::getFormObject

Same name and namespace in other branches
  1. 11.x core/modules/workspaces/src/Controller/WorkspacesHtmlEntityFormController.php \Drupal\workspaces\Controller\WorkspacesHtmlEntityFormController::getFormObject()

Returns the object used to build the form.

Parameters

\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match.

string $form_arg: Either a class name or a service ID.

Return value

\Drupal\Core\Form\FormInterface The form object to use.

Overrides FormController::getFormObject

1 call to WorkspacesHtmlEntityFormController::getFormObject()
WorkspacesHtmlEntityFormController::getContentResult in core/modules/workspaces/src/Controller/WorkspacesHtmlEntityFormController.php
Invokes the form and returns the result.

File

core/modules/workspaces/src/Controller/WorkspacesHtmlEntityFormController.php, line 93

Class

WorkspacesHtmlEntityFormController
Overrides the entity form controller service for workspaces operations.

Namespace

Drupal\workspaces\Controller

Code

protected function getFormObject(RouteMatchInterface $route_match, $form_arg) : FormInterface {
  return $this->entityFormController
    ->getFormObject($route_match, $form_arg);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.