You are here

public function SocialMediaSubscriber::executeSocialMedia in Social media share 8

Subscribes to social_media.pre_execute event.

File

./social_media.api.php, line 39

Class

SocialMediaSubscriber
Listens to the dynamic route events.

Namespace

Drupal\social_media\EventSubscriber

Code

public function executeSocialMedia($event) {
  $element = $event
    ->getElement();
  $element['facebook_share']['weight'] = 8;
  $event
    ->setElement($element);
}