Skip to content

Commit

Permalink
Added reason option into the configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
sebprt committed Jul 28, 2023
1 parent 3c5e39f commit 56a38e9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Plugin/Filtering/Configuration/Reject.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ public function getConfigTreeBuilder(): TreeBuilder
->then(asExpression())
->end()
->end()
->scalarNode('reason')
->isRequired()
->cannotBeEmpty()
->validate()
->ifTrue(isExpression())
->then(asExpression())
->end()
->end()
->end()
->end()
;
Expand Down

0 comments on commit 56a38e9

Please sign in to comment.