You are here

public function ConfigListerWithProviders::providerHasConfig in Configuration Update Manager 8

Lists the providers of a given type that actually have configuration.

Parameters

string $type: Type of extension (module, theme, profile).

string $name: Machine name of extension.

Return value

bool TRUE if the extension has either install or optional config, and FALSE if it does not.

Overrides ConfigListByProviderInterface::providerHasConfig

File

src/ConfigListerWithProviders.php, line 144

Class

ConfigListerWithProviders
Provides methods related to config listing, including provider calculation.

Namespace

Drupal\config_update

Code

public function providerHasConfig($type, $name) {

  // Make sure the list of extensions with configuration has been generated.
  $this
    ->listProviders();
  return isset($this->extensionsWithConfig[$type][$name]);
}