Add before/after ordering to events

Created on 7 October 2014, over 9 years ago
Updated 24 August 2023, 10 months ago
public static function getSubscribedEvents() {
  $events[KernelEvents::REQUEST][] = (new DrupalEventSubscriber($this, 'someMethod'))
    ->before('some.other.event.subscription.service:method')
    ->after('yet.another.event.subscription.service:method');
  return $events;
}
πŸ“Œ Task
Status

Needs work

Version

11.0 πŸ”₯

Component
BaseΒ  β†’

Last updated less than a minute ago

Created by

πŸ‡¨πŸ‡¦Canada chx

Live updates comments and jobs are added and updated live.
  • DrupalWTF

    Worse Than Failure. Approximates the unpleasant remark made by Drupal developers when they first encounter a particular (mis)feature.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡·πŸ‡΄Romania amateescu

    One idea for the issue mentioned in #25 could be that the before/after syntax will specify "providers" (module names), because that's the majority use-case for this feature: "I want my hook/event implementation to run before or after the same hook/event from module X".

Production build 0.69.0 2024