You are here

public function ThemeSwitcherRuleListBuilder::__construct in Theme Switcher Rules 8

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\Session\AccountInterface $account: The active user account.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.

Overrides DraggableListBuilder::__construct

File

src/Controller/ThemeSwitcherRuleListBuilder.php, line 46

Class

ThemeSwitcherRuleListBuilder
Provides a listing of theme_switcher_rule.

Namespace

Drupal\theme_switcher\Controller

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, AccountInterface $account, MessengerInterface $messenger) {
  parent::__construct($entity_type, $storage);
  $this->currentUser = $account;
  $this->messenger = $messenger;
}