function ViewsHandlerManager::createInstance
Same name in other branches
- 8.9.x core/modules/views/src/Plugin/ViewsHandlerManager.php \Drupal\views\Plugin\ViewsHandlerManager::createInstance()
- 10 core/modules/views/src/Plugin/ViewsHandlerManager.php \Drupal\views\Plugin\ViewsHandlerManager::createInstance()
- 11.x core/modules/views/src/Plugin/ViewsHandlerManager.php \Drupal\views\Plugin\ViewsHandlerManager::createInstance()
Overrides PluginManagerBase::createInstance
1 call to ViewsHandlerManager::createInstance()
- ViewsHandlerManager::getHandler in core/
modules/ views/ src/ Plugin/ ViewsHandlerManager.php - Fetches a handler from the data cache.
File
-
core/
modules/ views/ src/ Plugin/ ViewsHandlerManager.php, line 120
Class
- ViewsHandlerManager
- Plugin type manager for all views handlers.
Namespace
Drupal\views\PluginCode
public function createInstance($plugin_id, array $configuration = []) {
$instance = parent::createInstance($plugin_id, $configuration);
if ($instance instanceof HandlerBase) {
$instance->setModuleHandler($this->moduleHandler);
$instance->setViewsData($this->viewsData);
}
return $instance;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.