public function EckEntityTypeListBuilder::__construct in Entity Construction Kit (ECK) 8
Constructs a new EntityListBuilder object.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\eck\EckEntityTypeBundleInfo $bundle_info: ECK Entity Bundle Info service.
Overrides EntityListBuilder::__construct
File
- src/
Controller/ EckEntityTypeListBuilder.php, line 56
Class
- EckEntityTypeListBuilder
- Provides a listing of ECK entities.
Namespace
Drupal\eck\ControllerCode
public function __construct(EntityTypeInterface $entity_type, EntityTypeManagerInterface $entity_type_manager, EckEntityTypeBundleInfo $bundle_info) {
$storage = $entity_type_manager
->getStorage($entity_type
->id());
parent::__construct($entity_type, $storage);
$this->entityTypeManager = $entity_type_manager;
$this->eckBundleInfo = $bundle_info;
}