public function SimpleMegaMenuListBuilder::__construct in Simple Mega Menu 8
Same name and namespace in other branches
- 2.0.x src/SimpleMegaMenuListBuilder.php \Drupal\simple_megamenu\SimpleMegaMenuListBuilder::__construct()
Constructs a new EntityListBuilder object.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.
\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage class.
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The Entity type manager service.
\Drupal\Core\Entity\EntityTypeBundleInfoInterface $bundleInfo: The bundle info service.
Overrides EntityListBuilder::__construct
File
- src/
SimpleMegaMenuListBuilder.php, line 49
Class
- SimpleMegaMenuListBuilder
- Defines a class to build a listing of Simple mega menu entities.
Namespace
Drupal\simple_megamenuCode
public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, EntityTypeManagerInterface $entityTypeManager, EntityTypeBundleInfoInterface $bundleInfo) {
parent::__construct($entity_type, $storage);
$this->entityTypeManager = $entityTypeManager;
$this->bundleInfo = $bundleInfo;
}