public function ContentHubRequirementManager::createInstanceMultiple in Acquia Content Hub 8
Creates pre-configured instances of all plugins.
Return value
\Drupal\acquia_contenthub_diagnostic\ContentHubRequirementInterface[] An array of fully configured plugin instances.
Throws
\Drupal\Component\Plugin\Exception\PluginException If an instance cannot be created, such as if the ID is invalid.
File
- acquia_contenthub_diagnostic/
src/ ContentHubRequirementManager.php, line 45
Class
- ContentHubRequirementManager
- Provides an ContentHubRequirementManager plugin manager.
Namespace
Drupal\acquia_contenthub_diagnosticCode
public function createInstanceMultiple() {
$instances = [];
$definitions = $this
->getDefinitions();
foreach ($definitions as $id => $definition) {
$instances[$id] = $this
->createInstance($id);
}
return $instances;
}