protected function FieldTargetBase::addMessage in Feeds 8.3
Adds a message.
Parameters
string|\Drupal\Component\Render\MarkupInterface $message: The translated message to be displayed to the user.
string $type: (optional) The message's type.
bool $repeat: (optional) If this is FALSE and the message is already set, then the message won't be repeated. Defaults to FALSE.
3 calls to FieldTargetBase::addMessage()
- ConfigEntityReference::setTarget in src/
Feeds/ Target/ ConfigEntityReference.php - Sets the values on an object.
- EntityReference::setTarget in src/
Feeds/ Target/ EntityReference.php - Sets the values on an object.
- FieldTargetBase::prepareValues in src/
Plugin/ Type/ Target/ FieldTargetBase.php - Prepares the the values that will be mapped to an entity.
File
- src/
Plugin/ Type/ Target/ FieldTargetBase.php, line 261
Class
- FieldTargetBase
- Helper class for field mappers.
Namespace
Drupal\feeds\Plugin\Type\TargetCode
protected function addMessage($message, $type = 'status', $repeat = FALSE) {
$this
->getMessenger()
->addMessage($message, $type, $repeat);
}