class FieldBundle

Field dependency injection container.

Hierarchy

Expanded class hierarchy of FieldBundle

File

drupal/core/modules/field/lib/Drupal/field/FieldBundle.php, line 16
Contains Drupal\field\FieldBundle.

Namespace

Drupal\field
View source
class FieldBundle extends Bundle {

  /**
   * Overrides Symfony\Component\HttpKernel\Bundle\Bundle::build().
   */
  public function build(ContainerBuilder $container) {

    // Register the plugin managers for our plugin types with the dependency injection container.
    $container
      ->register('plugin.manager.field.widget', 'Drupal\\field\\Plugin\\Type\\Widget\\WidgetPluginManager');
    $container
      ->register('plugin.manager.field.formatter', 'Drupal\\field\\Plugin\\Type\\Formatter\\FormatterPluginManager');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Bundle::$extension protected property
Bundle::$name protected property
Bundle::$reflected protected property
Bundle::boot public function Boots the Bundle. Overrides BundleInterface::boot
Bundle::getContainerExtension public function Returns the bundle's container extension. Overrides BundleInterface::getContainerExtension
Bundle::getName final public function Returns the bundle name (the class short name). Overrides BundleInterface::getName
Bundle::getNamespace public function Gets the Bundle namespace. Overrides BundleInterface::getNamespace
Bundle::getParent public function Returns the bundle parent name. Overrides BundleInterface::getParent
Bundle::getPath public function Gets the Bundle directory path. Overrides BundleInterface::getPath
Bundle::registerCommands public function Finds and registers Commands.
Bundle::shutdown public function Shutdowns the Bundle. Overrides BundleInterface::shutdown
ContainerAware::$container protected property @api
ContainerAware::setContainer public function Sets the Container associated with this Controller. Overrides ContainerAwareInterface::setContainer
FieldBundle::build public function Overrides Symfony\Component\HttpKernel\Bundle\Bundle::build(). Overrides Bundle::build