You are here

public function FilterFormatListBuilder::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/filter/src/FilterFormatListBuilder.php \Drupal\filter\FilterFormatListBuilder::__construct()
  2. 9 core/modules/filter/src/FilterFormatListBuilder.php \Drupal\filter\FilterFormatListBuilder::__construct()

Constructs a new FilterFormatListBuilder.

Parameters

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

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

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

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

Overrides DraggableListBuilder::__construct

File

core/modules/filter/src/FilterFormatListBuilder.php, line 52

Class

FilterFormatListBuilder
Defines a class to build a listing of filter format entities.

Namespace

Drupal\filter

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, ConfigFactoryInterface $config_factory, MessengerInterface $messenger) {
  parent::__construct($entity_type, $storage);
  $this->configFactory = $config_factory;
  $this->messenger = $messenger;
}