function LayoutBuilderOverridesPermissions::__construct

Same name in other branches
  1. 9 core/modules/layout_builder/src/LayoutBuilderOverridesPermissions.php \Drupal\layout_builder\LayoutBuilderOverridesPermissions::__construct()
  2. 8.9.x core/modules/layout_builder/src/LayoutBuilderOverridesPermissions.php \Drupal\layout_builder\LayoutBuilderOverridesPermissions::__construct()
  3. 10 core/modules/layout_builder/src/LayoutBuilderOverridesPermissions.php \Drupal\layout_builder\LayoutBuilderOverridesPermissions::__construct()

LayoutBuilderOverridesPermissions constructor.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $bundle_info: The bundle info service.

File

core/modules/layout_builder/src/LayoutBuilderOverridesPermissions.php, line 45

Class

LayoutBuilderOverridesPermissions
Provides dynamic permissions for Layout Builder overrides.

Namespace

Drupal\layout_builder

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $bundle_info) {
    $this->entityTypeManager = $entity_type_manager;
    $this->bundleInfo = $bundle_info;
}

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