Commit 4a8107cf authored by bircher's avatar bircher

Issue #2917659 by MPaans, qzmenko: PHP throws warnings from IgnoreFilter.php...

Issue #2917659 by MPaans, qzmenko: PHP throws warnings from IgnoreFilter.php when using drush config-import
parent 1b96229c
......@@ -52,7 +52,7 @@ class IgnoreFilter extends ConfigFilterBase implements ContainerFactoryPluginInt
*/
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
// Get the list of ignored config.
$ignored = $container->get('config.factory')->get('config_ignore.settings')->get('ignored_config_entities');
$ignored = (array) $container->get('config.factory')->get('config_ignore.settings')->get('ignored_config_entities');
// Allow hooks to alter the list.
$container->get('module_handler')->invokeAll('config_ignore_settings_alter', [&$ignored]);
// Set the list in the plugin configuration.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment