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