Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / aggregator / src / Plugin / AggregatorPluginSettingsBase.php
1 <?php
2
3 namespace Drupal\aggregator\Plugin;
4
5 use Drupal\Component\Plugin\ConfigurablePluginInterface;
6 use Drupal\Core\Form\FormStateInterface;
7 use Drupal\Core\Plugin\PluginBase;
8 use Drupal\Core\Plugin\PluginFormInterface;
9
10 /**
11  * Base class for aggregator plugins that implement settings forms.
12  *
13  * @see \Drupal\aggregator\Annotation\AggregatorParser
14  * @see \Drupal\aggregator\Annotation\AggregatorFetcher
15  * @see \Drupal\aggregator\Annotation\AggregatorProcessor
16  * @see \Drupal\aggregator\Plugin\AggregatorPluginManager
17  * @see \Drupal\aggregator\Plugin\FetcherInterface
18  * @see \Drupal\aggregator\Plugin\ProcessorInterface
19  * @see \Drupal\aggregator\Plugin\ParserInterface
20  * @see plugin_api
21  */
22 abstract class AggregatorPluginSettingsBase extends PluginBase implements PluginFormInterface, ConfigurablePluginInterface {
23
24   /**
25    * {@inheritdoc}
26    */
27   public function defaultConfiguration() {
28     return [];
29   }
30
31   /**
32    * {@inheritdoc}
33    */
34   public function validateConfigurationForm(array &$form, FormStateInterface $form_state) {
35   }
36
37   /**
38    * {@inheritdoc}
39    */
40   public function calculateDependencies() {
41     return [];
42   }
43
44 }