public function ParserBase::getMessenger in Feeds extensible parsers 8
Gets the messenger.
For compatibility with both Drupal 8.5 and Drupal 8.6.
Return value
\Drupal\Core\Messenger\MessengerInterface The messenger.
File
- src/
Feeds/ Parser/ ParserBase.php, line 921
Class
- ParserBase
- The Feeds extensible parser.
Namespace
Drupal\feeds_ex\Feeds\ParserCode
public function getMessenger() {
if (method_exists($this, 'messenger')) {
return $this
->messenger();
}
if (isset($this->feedsExMessenger)) {
return $this->feedsExMessenger;
}
return \Drupal::messenger();
}