public static UnmetDependenciesException::create($extension, array $config_objects)
Creates an exception for an extension and a list of configuration objects.
Parameters
$extension: The name of the extension that is being installed.
array $config_objects: A list of configuration object names that have unmet dependencies
Return value
\Drupal\Core\Config\PreExistingConfigException
File
- core/lib/Drupal/Core/Config/UnmetDependenciesException.php, line 77
Class
- UnmetDependenciesException
- An exception thrown if configuration has unmet dependencies.
Namespace
Drupal\Core\Config
Code
public static function create($extension, array $config_objects) { $message = SafeMarkup::format('Configuration objects (@config_names) provided by @extension have unmet dependencies', array( '@config_names' => implode(', ', $config_objects), '@extension' => $extension ) ); $e = new static($message); $e->configObjects = $config_objects; $e->extension = $extension; return $e; }
Please login to continue.