public function SocialMediaSubscriber::addMoreSocialMedia in Social media share 8
Subscribes to social_media.add_more_social_media event.
File
- ./
social_media.api.php, line 30
Class
- SocialMediaSubscriber
- Listens to the dynamic route events.
Namespace
Drupal\social_media\EventSubscriberCode
public function addMoreSocialMedia($event) {
$element = $event
->getElement();
$element['google_plus'] = 'Google plus';
$event
->setElement($element);
}