public function LayoutListBuilder::__construct in Layout builder library 8
Constructs a new LayoutListBuilder object.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: Entity type.
\Drupal\Core\Entity\EntityStorageInterface $storage: Entity storage.
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: Entity type manager.
\Drupal\Core\Entity\EntityTypeBundleInfoInterface $bundleInfo: Bundle info.
\Drupal\Core\Session\AccountInterface $currentUser: Current user.
Overrides EntityListBuilder::__construct
File
- src/
Entity/ LayoutListBuilder.php, line 56
Class
- LayoutListBuilder
- Defines a list builder for layouts.
Namespace
Drupal\layout_library\EntityCode
public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, EntityTypeManagerInterface $entityTypeManager, EntityTypeBundleInfoInterface $bundleInfo, AccountInterface $currentUser) {
parent::__construct($entity_type, $storage);
$this->entityTypeManager = $entityTypeManager;
$this->bundleInfo = $bundleInfo;
$this->currentUser = $currentUser;
}