This issue is for adding the @Event tag and appropriate documentation to the following list of events.
$this->dispatcher->dispatch(RoutingEvents::DYNAMIC, new RouteBuildEvent($collection)); $this->dispatcher->dispatch(RoutingEvents::ALTER, new RouteBuildEvent($collection)); $this->dispatcher->dispatch(RoutingEvents::FINISHED, new Event());
This documentation should include the following information:
- What the event is
- What it is used for
- What kind of $event object is passed along.
- @see links to related classes (event class, representative class where event is dispatched, representative class where event is subscribed to).
See the parent issue for a documentation template, and more information: #2382169: [meta] Add @Event to all events defined by drupal core
Beta eval: This is API documentation, so unfrozen. Also very low disruption possibility.
Comment | File | Size | Author |
---|---|---|---|
#9 | 2415513-9-routingevents-docs.patch | 2.73 KB | eojthebrave |
#4 | 2415513-4-routingevents-docs.patch | 2.72 KB | eojthebrave |
#1 | 2415513-1-routingevents-docs.patch | 2.65 KB | eojthebrave |
Comments
Comment #1
eojthebraveHere's a first pass at documentation for these events.
Comment #2
eojthebraveAdding beta-eval info to issue summary, as per other similar issues.
Comment #3
jhodgdonThanks for the patch!
Do you think commas would be useful before "giving" in this paragraph and the other similar one? Otherwise the sentence seems a bit hard to parse:
I'm also wondering if we should change the first lines:
The other @Event blocks we've defined in other patches on the parent meta-issue are using style like:
The name of the event ...
I'd vote for consistency.
Comment #4
eojthebrave- Added commas to fix some run-on sentences.
- Change the first sentence of documentation for each event to make them consistent with other already documented events
Ready for another review.
Comment #5
eojthebraveComment #6
jhodgdonLooks good now, thanks!
Comment #7
dawehnerNote: Its just an Event, because by definition we construction we did not want to pass the routes along. This is at least the state in head:
Comment #8
jhodgdonSounds like we need to update the documentation then?
Comment #9
eojthebraveOops. Here's an updated version with `\Symfony\Component\EventDispatcher\Event` reference for the FINISHED event.
Comment #10
jhodgdonLooks good! I double-checked the other two and they're passed the event classes in the docs.
Comment #11
alexpottCommitted 6dc2481 and pushed to 8.0.x. Thanks!
Thanks for adding the beta evaluation to the issue summary.