You are here

public function ConfigPagesTypeDeleteForm::__construct in Config Pages 8.3

Same name and namespace in other branches
  1. 8 src/Form/ConfigPagesTypeDeleteForm.php \Drupal\config_pages\Form\ConfigPagesTypeDeleteForm::__construct()
  2. 8.2 src/Form/ConfigPagesTypeDeleteForm.php \Drupal\config_pages\Form\ConfigPagesTypeDeleteForm::__construct()

Constructs a query factory object.

Parameters

EntityTypeManagerInterface $entity_type_manager:

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

File

src/Form/ConfigPagesTypeDeleteForm.php, line 28

Class

ConfigPagesTypeDeleteForm
Provides a confirmation form for deleting a config page type entity.

Namespace

Drupal\config_pages\Form

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager) {
  $this->queryFactory = $entity_type_manager
    ->getStorage('config_pages')
    ->getQuery();
}