You are here

public function ModerationStateSort::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/content_moderation/src/Plugin/views/sort/ModerationStateSort.php \Drupal\content_moderation\Plugin\views\sort\ModerationStateSort::__construct()
  2. 9 core/modules/content_moderation/src/Plugin/views/sort/ModerationStateSort.php \Drupal\content_moderation\Plugin\views\sort\ModerationStateSort::__construct()

Creates an instance of ModerationStateFilter.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

File

core/modules/content_moderation/src/Plugin/views/sort/ModerationStateSort.php, line 40

Class

ModerationStateSort
Enables sorting for the computed moderation_state field.

Namespace

Drupal\content_moderation\Plugin\views\sort

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entity_type_manager;
}