You are here

public function AutobanListBuilder::__construct in Automatic IP ban (Autoban) 8

Construct the AutobanListBuilder.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage class.

\Drupal\autoban\Controller\AutobanController $autoban: Autoban object.

Overrides EntityListBuilder::__construct

File

src/Controller/AutobanListBuilder.php, line 48

Class

AutobanListBuilder
Provides a listing of autoban entities.

Namespace

Drupal\autoban\Controller

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, AutobanController $autoban) {
  parent::__construct($entity_type, $storage);
  $this->autoban = $autoban;
}