public function NodeConfigIgnore::getConfigurations in Config Ignore Keys 8
Should return an array containing the following structure.
[
'name.of.the.configuration.file.without.extension.1' => [
'key.of.the.configuration.1'
'key.of.the.configuration.2'
],
'name.of.the.configuration.file.without.extension.2' => [
'key.of.the.configuration.1'
'key.of.the.configuration.2'
],
'name.of.the.configuration.file.without.extension.3'
]
The key.of.the.configuration is the path to the config key inside the array containing the entire configuration of the file.
For 'name.of.the.configuration.file.without.extension.3' the whole file will be ignored.
Return value
array The configuration.
Overrides ConfigurationIgnorePluginInterface::getConfigurations
See also
ConfigFactoryInterface::getEditable()
File
- tests/
modules/ configuration_ignore_test/ src/ Plugin/ ConfigIgnore/ NodeConfigIgnore.php, line 22
Class
- NodeConfigIgnore
- Node config ignore plugin.
Namespace
Drupal\configuration_ignore_test\Plugin\ConfigIgnoreCode
public function getConfigurations() {
$node_type_name = ConfigIgnoreTest::NODE_TYPE_NAME;
return [
"node.type.{$node_type_name}" => [
'name',
],
];
}