public function FeedsPluginManager::processDefinition in Feeds 8.3
Performs extra processing on plugin definitions.
By default we add defaults for the type to the definition. If a type has additional processing logic they can do that by replacing or extending the method.
Overrides DefaultPluginManager::processDefinition
File
- src/
Plugin/ Type/ FeedsPluginManager.php, line 70
Class
- FeedsPluginManager
- Manages Feeds plugins.
Namespace
Drupal\feeds\Plugin\TypeCode
public function processDefinition(&$definition, $plugin_id) {
parent::processDefinition($definition, $plugin_id);
// Add plugin_type key so that we can determine the plugin type later.
$definition['plugin_type'] = $this->pluginType;
// If no default form is defined and this plugin implements
// \Drupal\Core\Plugin\PluginFormInterface, use that for the default form.
if (!isset($definition['form']['configuration']) && isset($definition['class']) && is_subclass_of($definition['class'], PluginFormInterface::class)) {
$definition['form']['configuration'] = $definition['class'];
}
}