public function BlockContentInlineBlockTranslateForm::__construct in Layout Builder Symmetric Translations 8
Constructs a ContentEntityForm object.
Parameters
\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository service.
\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle service.
\Drupal\Component\Datetime\TimeInterface $time: The time service.
Overrides ContentEntityForm::__construct
File
- src/
Form/ BlockContentInlineBlockTranslateForm.php, line 53
Class
- BlockContentInlineBlockTranslateForm
- Provides a form class for translating inline blocks in the Layout Builder.
Namespace
Drupal\layout_builder_st\FormCode
public function __construct(EntityRepositoryInterface $entity_repository, EntityTypeBundleInfoInterface $entity_type_bundle_info = NULL, TimeInterface $time = NULL, RouteMatchInterface $route_match = NULL, LayoutTempstoreRepositoryInterface $tempstore = NULL) {
parent::__construct($entity_repository, $entity_type_bundle_info, $time);
$this->routeMatch = $route_match;
$this->layoutTempstoreRepository = $tempstore;
$this->uuid = $route_match
->getParameter('uuid');
$this->delta = $route_match
->getParameter('delta');
$this->sectionStorage = $route_match
->getParameter('section_storage');
}