public static function ConfigActionsTemplate::create in Config Actions 8
Create a plugin instance from the container
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface $container:
array $configuration:
string $plugin_id:
mixed $plugin_definition:
Return value
static
Overrides ConfigActionsSourceBase::create
File
- src/
Plugin/ ConfigActionsSource/ ConfigActionsTemplate.php, line 68
Class
- ConfigActionsTemplate
- Plugin for config source from files.
Namespace
Drupal\config_actions\Plugin\ConfigActionsSourceCode
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
/** @var ConfigActionsServiceInterface $config_action_service */
$config_action_service = $container
->get('config_actions');
/** @var StorageInterface $config_storage */
$config_storage = $container
->get('config.storage');
return new static($configuration, $plugin_id, $plugin_definition, $config_action_service, $config_storage, $container
->getParameter('install_profile'));
}