public function DomainListBuilder::__construct in Domain Access 8
Constructs a new DomainListBuilder object.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.
\Drupal\domain\DomainStorageInterface $domain_storage: The domain storage class.
\Drupal\Core\Session\AccountInterface $account: The active user account.
\Drupal\Core\Routing\RedirectDestinationInterface $destination_handler: The redirect destination helper.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\domain\DomainElementManagerInterface $domain_element_manager: The domain field element manager.
Overrides DraggableListBuilder::__construct
File
- domain/
src/ DomainListBuilder.php, line 117
Class
- DomainListBuilder
- User interface for the domain overview screen.
Namespace
Drupal\domainCode
public function __construct(EntityTypeInterface $entity_type, DomainStorageInterface $domain_storage, AccountInterface $account, RedirectDestinationInterface $destination_handler, EntityTypeManagerInterface $entity_type_manager, ModuleHandlerInterface $module_handler, DomainElementManagerInterface $domain_element_manager) {
parent::__construct($entity_type, $domain_storage);
$this->entityTypeId = $entity_type
->id();
$this->domainStorage = $domain_storage;
$this->entityType = $entity_type;
$this->currentUser = $account;
$this->destinationHandler = $destination_handler;
$this->entityTypeManager = $entity_type_manager;
$this->accessHandler = $this->entityTypeManager
->getAccessControlHandler('domain');
$this->moduleHandler = $module_handler;
$this->domainElementManager = $domain_element_manager;
$this->userStorage = $this->entityTypeManager
->getStorage('user');
// DraggableListBuilder sets this to FALSE, which cancels any pagination.
$this->limit = 50;
}