class LayoutBuilderDecorationTestHtmlEntityFormController

Same name in other branches
  1. 10 core/modules/layout_builder/tests/modules/layout_builder_decoration_test/src/Controller/LayoutBuilderDecorationTestHtmlEntityFormController.php \Drupal\layout_builder_decoration_test\Controller\LayoutBuilderDecorationTestHtmlEntityFormController
  2. 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

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\Controller
View 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

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
DependencySerializationTrait::$_entityStorages protected property
DependencySerializationTrait::$_serviceIds protected property
DependencySerializationTrait::__sleep public function 1
DependencySerializationTrait::__wakeup public function 2
FormController::$argumentResolver protected property The argument resolver.
FormController::$formBuilder protected property The form builder.
LayoutBuilderDecorationTestHtmlEntityFormController::$entityFormController protected property The entity form controller being decorated.
LayoutBuilderDecorationTestHtmlEntityFormController::getContentResult public function Invokes the form and returns the result. Overrides FormController::getContentResult
LayoutBuilderDecorationTestHtmlEntityFormController::getFormArgument protected function Extracts the form argument string from a request. Overrides FormController::getFormArgument
LayoutBuilderDecorationTestHtmlEntityFormController::getFormObject protected function Returns the object used to build the form. Overrides FormController::getFormObject
LayoutBuilderDecorationTestHtmlEntityFormController::__construct public function Constructs a LayoutBuilderDecorationTestHtmlEntityFormController object. Overrides FormController::__construct

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