You are here

public static function SocialMediaSubscriber::getSubscribedEvents in Social media share 8

Public static method used by Drupals event.

Return value

mixed Array of events we subscribe to.

File

./social_media.api.php, line 18

Class

SocialMediaSubscriber
Listens to the dynamic route events.

Namespace

Drupal\social_media\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events = [];
  $events['social_media.add_more_social_media'][] = [
    'addMoreSocialMedia',
    39,
  ];
  $events['social_media.pre_execute'][] = [
    'executeSocialMedia',
    39,
  ];
  $events['social_media.pre_render'][] = [
    'renderSocialMedia',
    39,
  ];
  return $events;
}