LayoutBundle.php

Definition of Drupal\layout\LayoutBundle.

Namespace

Drupal\Layout

File

drupal/core/modules/layout/lib/Drupal/layout/LayoutBundle.php
View source
<?php

/**
 * @file
 * Definition of Drupal\layout\LayoutBundle.
 */
namespace Drupal\Layout;

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;

/**
 * Layout dependency injection container.
 */
class LayoutBundle extends Bundle {

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

    // Register the LayoutManager class with the dependency injection container.
    $container
      ->register('plugin.manager.layout', 'Drupal\\layout\\Plugin\\Type\\LayoutManager');
  }

}

Classes

Namesort descending Description
LayoutBundle Layout dependency injection container.