function ArchiverManager::createInstance
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Archiver/ArchiverManager.php \Drupal\Core\Archiver\ArchiverManager::createInstance()
- 10 core/lib/Drupal/Core/Archiver/ArchiverManager.php \Drupal\Core\Archiver\ArchiverManager::createInstance()
- 11.x core/lib/Drupal/Core/Archiver/ArchiverManager.php \Drupal\Core\Archiver\ArchiverManager::createInstance()
Overrides PluginManagerBase::createInstance
1 call to ArchiverManager::createInstance()
- ArchiverManager::getInstance in core/
lib/ Drupal/ Core/ Archiver/ ArchiverManager.php
File
-
core/
lib/ Drupal/ Core/ Archiver/ ArchiverManager.php, line 54
Class
- ArchiverManager
- Provides an Archiver plugin manager.
Namespace
Drupal\Core\ArchiverCode
public function createInstance($plugin_id, array $configuration = []) {
$plugin_definition = $this->getDefinition($plugin_id);
$plugin_class = DefaultFactory::getPluginClass($plugin_id, $plugin_definition, 'Drupal\\Core\\Archiver\\ArchiverInterface');
return new $plugin_class($this->fileSystem
->realpath($configuration['filepath']));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.