LayoutBuilderDecorationTestHtmlEntityFormController.php in Drupal 9
File
core/modules/layout_builder/tests/modules/layout_builder_decoration_test/src/Controller/LayoutBuilderDecorationTestHtmlEntityFormController.php
View source
<?php
namespace Drupal\layout_builder_decoration_test\Controller;
use Drupal\Core\Controller\FormController;
use Drupal\Core\Routing\RouteMatchInterface;
use Symfony\Component\HttpFoundation\Request;
class LayoutBuilderDecorationTestHtmlEntityFormController extends FormController {
protected $entityFormController;
public function __construct(FormController $entity_form_controller) {
$this->entityFormController = $entity_form_controller;
}
public function getContentResult(Request $request, RouteMatchInterface $route_match) {
return $this->entityFormController
->getContentResult($request, $route_match);
}
protected function getFormArgument(RouteMatchInterface $route_match) {
return $this->entityFormController
->getFormArgument($route_match);
}
protected function getFormObject(RouteMatchInterface $route_match, $form_arg) {
return $this->entityFormController
->getFormObject($route_match, $form_arg);
}
}