LanguageTestBundle.php

Contains \Drupal\language_test\LanguageTestBundle.

Namespace

Drupal\language_test

File

drupal/core/modules/language/tests/language_test/lib/Drupal/language_test/LanguageTestBundle.php
View source
<?php

/**
 * @file
 * Contains \Drupal\language_test\LanguageTestBundle.
 */
namespace Drupal\language_test;

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

/**
 * Defines the LanguageTest bundle.
 */
class LanguageTestBundle extends Bundle {

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

    // Overrides language_manager class to test domain language negotiation.
    $definition = $container
      ->getDefinition('language_manager');
    $definition
      ->setClass('Drupal\\language_test\\LanguageTestManager');
  }

}

Classes

Namesort descending Description
LanguageTestBundle Defines the LanguageTest bundle.