public static function DataPolicyExportPluginBase::create in Data Policy 8
The create method.
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface $container: Container interface.
array $configuration: An array of configuration.
string $plugin_id: The plugin id.
mixed $plugin_definition: The plugin definition.
Return value
\Drupal\Core\Plugin\ContainerFactoryPluginInterface|\Drupal\data_policy_export\Plugin\DataPolicyExportPluginBase Returns the DataPolicyExportPluginBase.
Overrides ContainerFactoryPluginInterface::create
File
- modules/
data_policy_export/ src/ Plugin/ DataPolicyExportPluginBase.php, line 81
Class
- DataPolicyExportPluginBase
- Base class for Data Policy export plugin plugins.
Namespace
Drupal\data_policy_export\PluginCode
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
return new static($configuration, $plugin_id, $plugin_definition, $container
->get('entity_type.manager'), $container
->get('date.formatter'), $container
->get('database'));
}