ViewsBundle.php in Views (for Drupal 7) 8.3
Definition of Drupal\views\ViewsBundle.
Namespace
Drupal\viewsFile
lib/Drupal/views/ViewsBundle.phpView source
<?php
/**
* @file
* Definition of Drupal\views\ViewsBundle.
*/
namespace Drupal\views;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Drupal\views\ViewExecutable;
/**
* Views dependency injection container.
*/
class ViewsBundle extends Bundle {
/**
* Overrides Symfony\Component\HttpKernel\Bundle\Bundle::build().
*/
public function build(ContainerBuilder $container) {
foreach (ViewExecutable::getPluginTypes() as $type) {
if ($type == 'join') {
$container
->register('plugin.manager.views.join', 'Drupal\\views\\Plugin\\Type\\JoinManager');
}
elseif ($type == 'wizard') {
$container
->register('plugin.manager.views.wizard', 'Drupal\\views\\Plugin\\Type\\WizardManager');
}
else {
$container
->register("plugin.manager.views.{$type}", 'Drupal\\views\\Plugin\\Type\\PluginManager')
->addArgument($type);
}
}
}
}
Classes
Name | Description |
---|---|
ViewsBundle | Views dependency injection container. |