You are here

class AuthmapAlterSubscriber in Authorization 8

Authmap event subscriber.

Hierarchy

  • class \Drupal\authorization\EventSubscriber\AuthmapAlterSubscriber implements \Symfony\Component\EventDispatcher\EventSubscriberInterface

Expanded class hierarchy of AuthmapAlterSubscriber

1 string reference to 'AuthmapAlterSubscriber'
authorization.services.yml in ./authorization.services.yml
authorization.services.yml
1 service uses AuthmapAlterSubscriber
authorization_authmap_subscriber in ./authorization.services.yml
Drupal\authorization\EventSubscriber\AuthmapAlterSubscriber

File

src/EventSubscriber/AuthmapAlterSubscriber.php, line 13

Namespace

Drupal\authorization\EventSubscriber
View source
class AuthmapAlterSubscriber implements EventSubscriberInterface {

  /**
   * Action to take on authorization.
   */
  public function onAuthmapAlter() : void {
  }

  /**
   * {@inheritdoc}
   */
  public static function getSubscribedEvents() {
    $events[ExternalAuthEvents::AUTHMAP_ALTER][] = [
      'onAuthmapAlter',
    ];
    return $events;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AuthmapAlterSubscriber::getSubscribedEvents public static function Returns an array of event names this subscriber wants to listen to.
AuthmapAlterSubscriber::onAuthmapAlter public function Action to take on authorization.