You are here

private function PluginHelperTrait::entityTypeBundleInfo in Layout Builder Restrictions 8.2

Gets the entity bundle interface.

Return value

\Drupal\Core\Entity\EntityTypeBundleInfoInterface An interface for an entity type bundle info.

File

src/Traits/PluginHelperTrait.php, line 377

Class

PluginHelperTrait
Methods to help Layout Builder Restrictions plugins.

Namespace

Drupal\layout_builder_restrictions\Traits

Code

private function entityTypeBundleInfo() {
  return $this->entityTypeBundleInfo ?? \Drupal::service('entity_type.bundle.info');
}