abstract class ExternalPluginFormBase in Feeds 8.3
Base class for Feeds plugins that have external configuration forms.
Hierarchy
- class \Drupal\feeds\Plugin\Type\ExternalPluginFormBase implements PluginFormInterface, PluginAwareInterface uses DependencySerializationTrait, StringTranslationTrait
Expanded class hierarchy of ExternalPluginFormBase
10 files declare their use of ExternalPluginFormBase
- CsvParserFeedForm.php in src/
Feeds/ Parser/ Form/ CsvParserFeedForm.php - CsvParserForm.php in src/
Feeds/ Parser/ Form/ CsvParserForm.php - DefaultEntityProcessorForm.php in src/
Feeds/ Processor/ Form/ DefaultEntityProcessorForm.php - DirectoryFetcherFeedForm.php in src/
Feeds/ Fetcher/ Form/ DirectoryFetcherFeedForm.php - DirectoryFetcherForm.php in src/
Feeds/ Fetcher/ Form/ DirectoryFetcherForm.php
File
- src/
Plugin/ Type/ ExternalPluginFormBase.php, line 14
Namespace
Drupal\feeds\Plugin\TypeView source
abstract class ExternalPluginFormBase implements PluginFormInterface, PluginAwareInterface {
use StringTranslationTrait;
use DependencySerializationTrait;
/**
* The Feeds plugin.
*
* @var \Drupal\feeds\Plugin\Type\FeedsPluginInterface
*/
protected $plugin;
/**
* {@inheritdoc}
*/
public function setPlugin(FeedsPluginInterface $plugin) {
$this->plugin = $plugin;
}
/**
* {@inheritdoc}
*/
public function validateConfigurationForm(array &$form, FormStateInterface $form_state) {
// Validation is optional.
}
/**
* {@inheritdoc}
*/
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
$this->plugin
->setConfiguration($form_state
->getValues());
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DependencySerializationTrait:: |
protected | property | An array of entity type IDs keyed by the property name of their storages. | |
DependencySerializationTrait:: |
protected | property | An array of service IDs keyed by property name used for serialization. | |
DependencySerializationTrait:: |
public | function | 1 | |
DependencySerializationTrait:: |
public | function | 2 | |
ExternalPluginFormBase:: |
protected | property | The Feeds plugin. | |
ExternalPluginFormBase:: |
public | function |
Sets the plugin for this object. Overrides PluginAwareInterface:: |
|
ExternalPluginFormBase:: |
public | function |
Form submission handler. Overrides PluginFormInterface:: |
4 |
ExternalPluginFormBase:: |
public | function |
Form validation handler. Overrides PluginFormInterface:: |
5 |
PluginFormInterface:: |
public | function | Form constructor. | 36 |
StringTranslationTrait:: |
protected | property | The string translation service. | 1 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. |