public function ParserBase::setFeedsExMessenger in Feeds extensible parsers 8
Sets the messenger.
For compatibility with both Drupal 8.5 and Drupal 8.6. Basically only useful for automated tests.
Parameters
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.
File
- src/
Feeds/ Parser/ ParserBase.php, line 904
Class
- ParserBase
- The Feeds extensible parser.
Namespace
Drupal\feeds_ex\Feeds\ParserCode
public function setFeedsExMessenger(MessengerInterface $messenger) {
if (method_exists($this, 'setMessenger')) {
$this
->setMessenger($messenger);
}
else {
$this->feedsExMessenger = $messenger;
}
}