class TestRouteSubscriber in Zircon Profile 8
Same name in this branch
- 8 core/tests/Drupal/Tests/Core/Routing/RouteBuilderTest.php \Drupal\Tests\Core\Routing\TestRouteSubscriber
- 8 core/modules/views/tests/src/Unit/EventSubscriber/RouteSubscriberTest.php \Drupal\Tests\views\Unit\EventSubscriber\TestRouteSubscriber
Same name and namespace in other branches
- 8.0 core/modules/views/tests/src/Unit/EventSubscriber/RouteSubscriberTest.php \Drupal\Tests\views\Unit\EventSubscriber\TestRouteSubscriber
Provides a test route subscriber.
Hierarchy
- class \Drupal\Core\Routing\RouteSubscriberBase implements EventSubscriberInterface
- class \Drupal\views\EventSubscriber\RouteSubscriber
- class \Drupal\Tests\views\Unit\EventSubscriber\TestRouteSubscriber
- class \Drupal\views\EventSubscriber\RouteSubscriber
Expanded class hierarchy of TestRouteSubscriber
File
- core/
modules/ views/ tests/ src/ Unit/ EventSubscriber/ RouteSubscriberTest.php, line 200 - Contains \Drupal\Tests\views\Unit\EventSubscriber\RouteSubscriberTest.
Namespace
Drupal\Tests\views\Unit\EventSubscriberView source
class TestRouteSubscriber extends RouteSubscriber {
/**
* The applicable views.
*
* @var array
*/
public $applicableViews;
/**
* {@inheritdoc}
*/
protected function getApplicableViews() {
return $this->applicableViews;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RouteSubscriber:: |
protected | property | The state key value store. | |
RouteSubscriber:: |
protected | property | Stores an array of route names keyed by view_id.display_id. | |
RouteSubscriber:: |
protected | property | Stores a list of view,display IDs which haven't be used in the alter event. | |
RouteSubscriber:: |
protected | property | The view storage. | |
RouteSubscriber:: |
protected | function |
Alters existing routes for a specific collection. Overrides RouteSubscriberBase:: |
|
RouteSubscriber:: |
public static | function |
Returns an array of event names this subscriber wants to listen to. Overrides RouteSubscriberBase:: |
|
RouteSubscriber:: |
protected | function | Gets all the views and display IDs using a route. | |
RouteSubscriber:: |
public | function | Resets the internal state of the route subscriber. | |
RouteSubscriber:: |
public | function | ||
RouteSubscriber:: |
public | function | Returns a set of route objects. | |
RouteSubscriber:: |
public | function | Constructs a \Drupal\views\EventSubscriber\RouteSubscriber instance. | |
RouteSubscriberBase:: |
public | function | Delegates the route altering to self::alterRoutes(). | 1 |
TestRouteSubscriber:: |
public | property | The applicable views. | |
TestRouteSubscriber:: |
protected | function |
Returns all views/display combinations with routes. Overrides RouteSubscriber:: |