diff --git a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/AggregatorPluginSettingsBase.php b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/AggregatorPluginSettingsBase.php index aa972e5..a7757ba 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/AggregatorPluginSettingsBase.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/AggregatorPluginSettingsBase.php @@ -24,5 +24,11 @@ public function settingsForm(array $form, array &$form_state) { /** * {@inheritdoc} */ + public function settingsValidate(array $form, array &$form_state) {} + + /** + * {@inheritdoc} + */ public function settingsSubmit(array $form, array &$form_state) {} + } diff --git a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/AggregatorPluginSettingsInterface.php b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/AggregatorPluginSettingsInterface.php index 3248814..d9310f0 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/AggregatorPluginSettingsInterface.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/AggregatorPluginSettingsInterface.php @@ -22,10 +22,25 @@ * * @return array * The form elements for the plugin settings. + * + * @see \Drupal\aggregator\Plugin\AggregatorPluginSettingsInterface::settingsValidate() + * @see \Drupal\aggregator\Plugin\AggregatorPluginSettingsInterface::settingsSubmit() */ public function settingsForm(array $form, array &$form_state); /** + * Adds plugin specific validation handling for the configuration form. + * + * @param array $form + * The form definition array where the settings form is being included in. + * @param array $form_state + * An associative array containing the current state of the form. + * + * @see \Drupal\aggregator\Plugin\AggregatorPluginSettingsInterface::settingsSubmit() + */ + public function settingsValidate(array $form, array &$form_state); + + /** * Adds plugin specific submission handling for the configuration form. * * @param array $form @@ -33,7 +48,7 @@ public function settingsForm(array $form, array &$form_state); * @param array $form_state * An associative array containing the current state of the form. * - * @see \Drupal\aggregator\Plugin\AggregatorPluginSettingsInterface::settingsForm() + * @see \Drupal\aggregator\Plugin\AggregatorPluginSettingsInterface::settingsValidate() */ public function settingsSubmit(array $form, array &$form_state);