Skip to content

Commit

Permalink
Fixed module compatibility with tide_edit_protection.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Fernandes committed Jul 25, 2021
1 parent 3c6c33c commit 130d7bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Form/ImportForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) {
try {
$this->contentLoader->setContentPath($temp_dir);
$entities = $this->contentLoader->loadContent($temp_name);
$this->messenger()->addMessage($this->formatPlural(count($entities), '1 demo entity has been imported.', '@count demo entities have been imported.') . ' Only node and media type entities are listed below - ');
$this->messenger()->addMessage($this->t($this->formatPlural(count($entities), '1 demo entity has been imported.', '@count demo entities have been imported.') . ' Only node and media type entities are listed below - '));
if (!empty($entities)) {
foreach ($entities as $entity) {
if ($entity->getEntityTypeId() == 'node' || $entity->getEntityTypeId() == 'media') {
Expand Down

0 comments on commit 130d7bd

Please sign in to comment.