public function MentionsUpdate::onMentionsUpdate in Open Social 8
Same name and namespace in other branches
- 8.9 modules/custom/mentions/src/EventSubscriber/MentionsUpdate.php \Drupal\mentions\EventSubscriber\MentionsUpdate::onMentionsUpdate()
- 8.2 modules/custom/mentions/src/EventSubscriber/MentionsUpdate.php \Drupal\mentions\EventSubscriber\MentionsUpdate::onMentionsUpdate()
- 8.3 modules/custom/mentions/src/EventSubscriber/MentionsUpdate.php \Drupal\mentions\EventSubscriber\MentionsUpdate::onMentionsUpdate()
- 8.4 modules/custom/mentions/src/EventSubscriber/MentionsUpdate.php \Drupal\mentions\EventSubscriber\MentionsUpdate::onMentionsUpdate()
- 8.5 modules/custom/mentions/src/EventSubscriber/MentionsUpdate.php \Drupal\mentions\EventSubscriber\MentionsUpdate::onMentionsUpdate()
- 8.6 modules/custom/mentions/src/EventSubscriber/MentionsUpdate.php \Drupal\mentions\EventSubscriber\MentionsUpdate::onMentionsUpdate()
- 8.7 modules/custom/mentions/src/EventSubscriber/MentionsUpdate.php \Drupal\mentions\EventSubscriber\MentionsUpdate::onMentionsUpdate()
- 8.8 modules/custom/mentions/src/EventSubscriber/MentionsUpdate.php \Drupal\mentions\EventSubscriber\MentionsUpdate::onMentionsUpdate()
- 10.3.x modules/custom/mentions/src/EventSubscriber/MentionsUpdate.php \Drupal\mentions\EventSubscriber\MentionsUpdate::onMentionsUpdate()
- 10.0.x modules/custom/mentions/src/EventSubscriber/MentionsUpdate.php \Drupal\mentions\EventSubscriber\MentionsUpdate::onMentionsUpdate()
- 10.1.x modules/custom/mentions/src/EventSubscriber/MentionsUpdate.php \Drupal\mentions\EventSubscriber\MentionsUpdate::onMentionsUpdate()
- 10.2.x modules/custom/mentions/src/EventSubscriber/MentionsUpdate.php \Drupal\mentions\EventSubscriber\MentionsUpdate::onMentionsUpdate()
File
- modules/
custom/ mentions/ src/ EventSubscriber/ MentionsUpdate.php, line 24
Class
- MentionsUpdate
- MentionsUpdate handles event 'mentions.update'.
Namespace
Drupal\mentions\EventSubscriberCode
public function onMentionsUpdate($event) {
$config = \Drupal::config('mentions.mentions');
$config_mentions_events = $config
->get('mentions_events');
$action_id = $config_mentions_events['update'];
if (empty($action_id)) {
return;
}
$entity_storage = \Drupal::entityManager()
->getStorage('action');
$action = $entity_storage
->load($action_id);
$action_plugin = $action
->getPlugin();
if (!empty($action_id)) {
$action_plugin
->execute(FALSE);
}
}