Skip to content

Commit

Permalink
#1053 Override condition form config to make URI optional (to prevent…
Browse files Browse the repository at this point in the history
… blocking submissions for other conditions)
  • Loading branch information
Jonathan Hunt committed Sep 26, 2024
1 parent bfea29b commit 673c39f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Plugin/Condition/ParentNodeOfNodeHasTerm.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@
*/
class ParentNodeOfNodeHasTerm extends NodeHasTerm {

/**
* {@inheritdoc}
*/
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
$form = parent::buildConfigurationForm($form, $form_state);
// Make term not required.
$form['term']['#required'] = FALSE;
return $form;
}

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit 673c39f

Please sign in to comment.