public function ConfigListerWithProviders::getConfigProvider in Configuration Update Manager 8
Returns the provider of a given config object.
Parameters
string $name: Name of the config object.
Return value
string[] Array containing the type of extension providing this config object as its first element (module, theme, profile), and the name of the provider as its second element. NULL if unknown.
Overrides ConfigListByProviderInterface::getConfigProvider
File
- src/
ConfigListerWithProviders.php, line 135
Class
- ConfigListerWithProviders
- Provides methods related to config listing, including provider calculation.
Namespace
Drupal\config_updateCode
public function getConfigProvider($name) {
$providers = $this
->listProviders();
return isset($providers[$name]) ? $providers[$name] : NULL;
}