Skip to content

Commit 56a38e9

Browse files
committed
Added reason option into the configuration
1 parent 3c5e39f commit 56a38e9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Plugin/Filtering/Configuration/Reject.php

+8
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ public function getConfigTreeBuilder(): TreeBuilder
2828
->then(asExpression())
2929
->end()
3030
->end()
31+
->scalarNode('reason')
32+
->isRequired()
33+
->cannotBeEmpty()
34+
->validate()
35+
->ifTrue(isExpression())
36+
->then(asExpression())
37+
->end()
38+
->end()
3139
->end()
3240
->end()
3341
;

0 commit comments

Comments
 (0)