You are here

class TestRouteSubscriber in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/tests/src/Unit/EventSubscriber/RouteSubscriberTest.php \Drupal\Tests\views\Unit\EventSubscriber\TestRouteSubscriber
  2. 9 core/modules/views/tests/src/Unit/EventSubscriber/RouteSubscriberTest.php \Drupal\Tests\views\Unit\EventSubscriber\TestRouteSubscriber

Provides a test route subscriber.

Hierarchy

  • class \Drupal\Tests\views\Unit\EventSubscriber\TestRouteSubscriber extends \Drupal\views\EventSubscriber\RouteSubscriber

Expanded class hierarchy of TestRouteSubscriber

File

core/modules/views/tests/src/Unit/EventSubscriber/RouteSubscriberTest.php, line 201
Contains \Drupal\Tests\views\Unit\EventSubscriber\RouteSubscriberTest.

Namespace

Drupal\Tests\views\Unit\EventSubscriber
View source
class TestRouteSubscriber extends RouteSubscriber {

  /**
   * The applicable views.
   *
   * @var array
   */
  public $applicableViews;

  /**
   * {@inheritdoc}
   */
  protected function getApplicableViews() {
    return $this->applicableViews;
  }

}

Members