Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
6dc2481b
Commit
6dc2481b
authored
10 years ago
by
Alex Pott
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2415513
by eojthebrave: Add @Event documentation to all RoutingEvents
parent
c00055f7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/lib/Drupal/Core/Routing/RoutingEvents.php
+39
-5
39 additions, 5 deletions
core/lib/Drupal/Core/Routing/RoutingEvents.php
with
39 additions
and
5 deletions
core/lib/Drupal/Core/Routing/RoutingEvents.php
+
39
−
5
View file @
6dc2481b
...
...
@@ -13,21 +13,55 @@
final
class
RoutingEvents
{
/**
*
THE DYNAMIC
event
is
fired
on a
route collection to allow new routes.
*
Name of the
event fired
during
route collection to allow new routes.
*
* This event is used to add new routes based upon existing routes.
* This event is used to add new routes based upon existing routes, giving
* modules the opportunity to dynamically generate additional routes. The
* event listener method receives a \Drupal\Core\Routing\RouteBuildEvent
* instance.
*
* @Event
*
* @see \Drupal\Core\Routing\RouteBuildEvent
* @see \Drupal\Core\EventSubscriber\EntityRouteProviderSubscriber
* @see \Drupal\Core\Routing\RouteBuilder::rebuild()
*
* @var string
*/
const
DYNAMIC
=
'routing.route_dynamic'
;
/**
* The ALTER event is fired on a route collection to allow changes to routes.
* Name of the event fired during route collection to allow changes to routes.
*
* This event is used to process new routes before they get saved, giving
* modules the opportunity to alter routes provided by any other module. The
* event listener method receives a \Drupal\Core\Routing\RouteBuildEvent
* instance.
*
* @Event
*
* This event is used to process new routes before they get saved.
* @see \Symfony\Component\Routing\RouteCollection
* @see \Drupal\system\EventSubscriber\AdminRouteSubscriber
* @see \Drupal\Core\Routing\RouteBuilder::rebuild()
*
* @var string
*/
const
ALTER
=
'routing.route_alter'
;
/**
* The FINISHED event is fired when the route building ended.
* Name of the event fired to indicate route building has ended.
*
* This event gives modules the opportunity to perform some action after route
* building has completed. The event listener receives a
* \Symfony\Component\EventDispatcher\Event instance.
*
* @Event
*
* @see \Symfony\Component\EventDispatcher\Event
* @see \Drupal\Core\EventSubscriber\MenuRouterRebuildSubscriber
* @see \Drupal\Core\Routing\RouteBuilder::rebuild()
*
* @var string
*/
const
FINISHED
=
'routing.route_finished'
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment