class LayoutBuilderDecorationTestHtmlEntityFormController
Same name in other branches
- 10 core/modules/layout_builder/tests/modules/layout_builder_decoration_test/src/Controller/LayoutBuilderDecorationTestHtmlEntityFormController.php \Drupal\layout_builder_decoration_test\Controller\LayoutBuilderDecorationTestHtmlEntityFormController
- 11.x core/modules/layout_builder/tests/modules/layout_builder_decoration_test/src/Controller/LayoutBuilderDecorationTestHtmlEntityFormController.php \Drupal\layout_builder_decoration_test\Controller\LayoutBuilderDecorationTestHtmlEntityFormController
Overrides the entity form controller service for layout builder decoration test.
Hierarchy
- class \Drupal\Core\Controller\FormController uses \Drupal\Core\DependencyInjection\DependencySerializationTrait
- class \Drupal\layout_builder_decoration_test\Controller\LayoutBuilderDecorationTestHtmlEntityFormController extends \Drupal\Core\Controller\FormController
Expanded class hierarchy of LayoutBuilderDecorationTestHtmlEntityFormController
1 string reference to 'LayoutBuilderDecorationTestHtmlEntityFormController'
- layout_builder_decoration_test.services.yml in core/
modules/ layout_builder/ tests/ modules/ layout_builder_decoration_test/ layout_builder_decoration_test.services.yml - core/modules/layout_builder/tests/modules/layout_builder_decoration_test/layout_builder_decoration_test.services.yml
1 service uses LayoutBuilderDecorationTestHtmlEntityFormController
- layout_builder_decoration_test.controller.entity_form in core/
modules/ layout_builder/ tests/ modules/ layout_builder_decoration_test/ layout_builder_decoration_test.services.yml - Drupal\layout_builder_decoration_test\Controller\LayoutBuilderDecorationTestHtmlEntityFormController
File
-
core/
modules/ layout_builder/ tests/ modules/ layout_builder_decoration_test/ src/ Controller/ LayoutBuilderDecorationTestHtmlEntityFormController.php, line 12
Namespace
Drupal\layout_builder_decoration_test\ControllerView source
class LayoutBuilderDecorationTestHtmlEntityFormController extends FormController {
/**
* The entity form controller being decorated.
*
* @var \Drupal\Core\Controller\FormController
*/
protected $entityFormController;
/**
* Constructs a LayoutBuilderDecorationTestHtmlEntityFormController object.
*
* @param \Drupal\Core\Controller\FormController $entity_form_controller
* The entity form controller being decorated.
*/
public function __construct(FormController $entity_form_controller) {
$this->entityFormController = $entity_form_controller;
}
/**
* {@inheritdoc}
*/
public function getContentResult(Request $request, RouteMatchInterface $route_match) {
return $this->entityFormController
->getContentResult($request, $route_match);
}
/**
* {@inheritdoc}
*/
protected function getFormArgument(RouteMatchInterface $route_match) {
return $this->entityFormController
->getFormArgument($route_match);
}
/**
* {@inheritdoc}
*/
protected function getFormObject(RouteMatchInterface $route_match, $form_arg) {
return $this->entityFormController
->getFormObject($route_match, $form_arg);
}
}
Members
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.