Skip to content

Commit

Permalink
Remove required from condition plugin forms since condition plugins a…
Browse files Browse the repository at this point in the history
…re optional (#1066)
  • Loading branch information
bibliophileaxe authored Dec 5, 2024
1 parent 9e0d874 commit 9ca6ba0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/Plugin/Condition/MediaHasMimetype.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta
'#type' => 'textfield',
'#title' => $this->t('Mime types'),
'#default_value' => $this->configuration['mimetypes'],
'#required' => TRUE,
'#maxlength' => 256,
'#description' => $this->t('Comma-delimited list of Mime types (e.g. image/jpeg, video/mp4, etc...) that trigger the condition.'),
];
Expand Down
1 change: 0 additions & 1 deletion src/Plugin/Condition/NodeHasParent.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta
'#type' => 'entity_autocomplete',
'#title' => $this->t('Parent node'),
'#default_value' => $this->entityTypeManager->getStorage('node')->load($this->configuration['parent_nid']),
'#required' => TRUE,
'#description' => $this->t("Can be a collection node or a compound object."),
'#target_type' => 'node',
];
Expand Down
1 change: 0 additions & 1 deletion src/Plugin/Condition/NodeHasTerm.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta
'#tags' => TRUE,
'#default_value' => $default,
'#target_type' => 'taxonomy_term',
'#required' => TRUE,
'#selection_handler' => 'islandora:external_uri',
];

Expand Down

0 comments on commit 9ca6ba0

Please sign in to comment.