diff --git a/src/Plugin/Condition/ParentNodeOfNodeHasTerm.php b/src/Plugin/Condition/ParentNodeOfNodeHasTerm.php index 0cff89a80..2caaa6d24 100644 --- a/src/Plugin/Condition/ParentNodeOfNodeHasTerm.php +++ b/src/Plugin/Condition/ParentNodeOfNodeHasTerm.php @@ -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} */