private function ExportForm::addResultMessage in Default Content Deploy 8
Add a message with exporting results.
1 call to ExportForm::addResultMessage()
- ExportForm::submitForm in src/
Form/ ExportForm.php - Form submission handler.
File
- src/
Form/ ExportForm.php, line 304
Class
- ExportForm
- Config Form for run DCD deploy in Admin UI.
Namespace
Drupal\default_content_deploy\FormCode
private function addResultMessage() {
$result = $this->exporter
->getResult();
foreach ($result as $entity_type => $value) {
$this->messenger
->addMessage($this
->t('Exported @count entities of the "@entity_type" entity type.', [
'@count' => count($value),
'@entity_type' => $entity_type,
MB_CASE_TITLE,
]));
}
return $this;
}