1 | <?php |
||
9 | trait PluginConfigurationFormTrait { |
||
10 | |||
11 | /** |
||
12 | * Implements PluginFormInterface::buildConfigurationForm(). |
||
13 | */ |
||
14 | public function buildConfigurationForm(array $form, FormStateInterface $form_state) { |
||
17 | |||
18 | /** |
||
19 | * Implements PluginFormInterface::validateConfigurationForm(). |
||
20 | */ |
||
21 | public function validateConfigurationForm(array &$form, FormStateInterface $form_state) { |
||
23 | |||
24 | /** |
||
25 | * Implements PluginFormInterface::submitConfigurationForm(). |
||
26 | * |
||
27 | * This is the default implementation for the most common cases where the form |
||
28 | * element names match keys in configuration array. Plugins can override this |
||
29 | * if they need more complex logic. |
||
30 | */ |
||
31 | public function submitConfigurationForm(array &$form, FormStateInterface $form_state) { |
||
46 | |||
47 | } |
||
48 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.