function MenuLinkListBuilder::__construct
Same name in other branches
- 11.x core/modules/menu_link_content/src/MenuLinkListBuilder.php \Drupal\menu_link_content\MenuLinkListBuilder::__construct()
Constructs a new instance.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.
\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage class.
\Drupal\Core\Routing\RedirectDestinationInterface $redirect_destination: The redirect destination.
Overrides EntityListBuilder::__construct
File
-
core/
modules/ menu_link_content/ src/ MenuLinkListBuilder.php, line 45
Class
- MenuLinkListBuilder
- Provides a menu link list builder.
Namespace
Drupal\menu_link_contentCode
public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, RedirectDestinationInterface $redirect_destination) {
parent::__construct($entity_type, $storage);
$this->redirectDestination = $redirect_destination;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.