UrlAlterTestBundle.php

Contains Drupal\url_alter_test\UrlAlterTestBundle.

Namespace

Drupal\url_alter_test

File

drupal/core/modules/system/tests/modules/url_alter_test/lib/Drupal/url_alter_test/UrlAlterTestBundle.php
View source
<?php

/**
 * @file
 * Contains Drupal\url_alter_test\UrlAlterTestBundle.
 */
namespace Drupal\url_alter_test;

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

/**
 * Test bundle class for url_alter_test.
 *
 * Used to register an event subscriber that resolves a path alias to a system
 * path based on an arbitrary set of rules.
 *
 * @see \Drupal\url_alter_test\PathSubscriber
 */
class UrlAlterTestBundle extends Bundle {
  public function build(ContainerBuilder $container) {
    $container
      ->register('url_alter_test.path_subscriber', 'Drupal\\url_alter_test\\PathSubscriber')
      ->addTag('event_subscriber');
  }

}

Classes

Namesort descending Description
UrlAlterTestBundle Test bundle class for url_alter_test.