public function Utility::faqAskGetFaqNotificationEmail in FAQ_Ask 8
Helper function to fetch an email for notification assigned to an faq node.
1 call to Utility::faqAskGetFaqNotificationEmail()
- faq_ask_node_update in ./
faq_ask.module - Implements hook_node_update().
File
- src/
Utility.php, line 205 - Contains \Drupal\faq_ask\Utility.
Class
- Utility
- Contains static helper functions for FAQ module.
Namespace
Drupal\faq_askCode
public function faqAskGetFaqNotificationEmail($nid) {
return \Drupal::database()
->select('faq_ask_notify', 'fan')
->fields('fan', array(
'email',
))
->condition('nid', $nid)
->execute()
->fetchField();
}