You are here

public function WebformOptionsListBuilder::__construct in Webform 8.5

Constructs a new WebformOptionsListBuilder object.

Parameters

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

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

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

Overrides EntityListBuilder::__construct

File

src/WebformOptionsListBuilder.php, line 48

Class

WebformOptionsListBuilder
Defines a class to build a listing of webform options entities.

Namespace

Drupal\webform

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, RequestStack $request_stack) {
  parent::__construct($entity_type, $storage);
  $this->request = $request_stack
    ->getCurrentRequest();
  $this->keys = $this->request->query
    ->get('search');
  $this->category = $this->request->query
    ->get('category');
}