You are here

public function YamlFormEntityListBuilder::__construct in YAML Form 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.

Overrides EntityListBuilder::__construct

File

src/YamlFormEntityListBuilder.php, line 54

Class

YamlFormEntityListBuilder
Defines a class to build a listing of form entities.

Namespace

Drupal\yamlform

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage) {
  parent::__construct($entity_type, $storage);
  $this->keys = \Drupal::request()->query
    ->get('search');
  $this->state = \Drupal::request()->query
    ->get('state');
  $this->submissionStorage = \Drupal::entityTypeManager()
    ->getStorage('yamlform_submission');
}