diff --git a/core/modules/content_moderation/src/Plugin/views/filter/ModerationStateFilter.php b/core/modules/content_moderation/src/Plugin/views/filter/ModerationStateFilter.php index 3338613..21dd637 100644 --- a/core/modules/content_moderation/src/Plugin/views/filter/ModerationStateFilter.php +++ b/core/modules/content_moderation/src/Plugin/views/filter/ModerationStateFilter.php @@ -6,7 +6,6 @@ use Drupal\Core\Database\Query\Condition; use Drupal\Core\Entity\EntityStorageInterface; use Drupal\Core\Entity\EntityTypeManagerInterface; -use Drupal\Core\Form\FormStateInterface; use Drupal\views\Plugin\DependentWithRemovalPluginInterface; use Drupal\views\Plugin\views\filter\InOperator; use Drupal\views\Views; @@ -79,32 +78,6 @@ public function getCacheContexts() { /** * {@inheritdoc} */ - public function hasExtraOptions() { - return TRUE; - } - - /** - * {@inheritdoc} - */ - public function buildExtraOptionsForm(&$form, FormStateInterface $form_state) { - $types = []; - foreach ($this->workflowStorage->loadByProperties(['type' => 'content_moderation']) as $workflow) { - $workflow_type = $workflow->getTypePlugin(); - if (in_array($this->getEntityType(), $workflow_type->getEntityTypes(), TRUE)) { - $types[$workflow->id()] = $workflow->label(); - } - } - $form['limit_workflows'] = [ - '#title' => $this->t('Limit the allowed workflows to the following list'), - '#type' => 'checkboxes', - '#options' => $types, - '#default_value' => $this->options['limit_workflows'], - ]; - } - - /** - * {@inheritdoc} - */ public function getValueOptions() { if (isset($this->valueOptions)) { return $this->valueOptions; @@ -115,9 +88,6 @@ public function getValueOptions() { // view is displaying. $query = $this->workflowStorage->getQuery(); $query->condition('type', 'content_moderation', '='); - if (isset($this->options['limit_workflows'])) { - $query->condition('id', $this->options['limit_workflows'], 'IN'); - } $result = $query->execute(); foreach ($this->workflowStorage->loadMultiple($result) as $workflow) {