function AttributeClassDiscovery::hasMissingDependencies
Whether the plugin definition has missing dependencies.
Parameters
array<string, array<class-string>> $dependencies: An array of dependencies' class names or namespaces, keyed by type.
Return value
bool TRUE if any dependencies are missing. FALSE otherwise.
Overrides AttributeClassDiscovery::hasMissingDependencies
File
-
core/
lib/ Drupal/ Core/ Plugin/ Discovery/ AttributeClassDiscovery.php, line 159
Class
- AttributeClassDiscovery
- Defines a discovery mechanism to find plugins using attributes.
Namespace
Drupal\Core\Plugin\DiscoveryCode
protected function hasMissingDependencies(array $dependencies) : bool {
if (empty($dependencies['provider'])) {
return FALSE;
}
// Convert providers to two-level namespaces to check for availability.
$dependencies['provider'] = array_map(static fn($provider) => "Drupal\\{$provider}", $dependencies['provider']);
return parent::hasMissingDependencies($dependencies);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.