X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FEntity%2FEntityListBuilder.php;fp=web%2Fcore%2Flib%2FDrupal%2FCore%2FEntity%2FEntityListBuilder.php;h=c7843517be50e203c8dca5360ba79aa8c3bc24f4;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=7191fae8d407dc898018f6fcca2911a3aca37a9b;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;p=yaffs-website diff --git a/web/core/lib/Drupal/Core/Entity/EntityListBuilder.php b/web/core/lib/Drupal/Core/Entity/EntityListBuilder.php index 7191fae8d..c7843517b 100644 --- a/web/core/lib/Drupal/Core/Entity/EntityListBuilder.php +++ b/web/core/lib/Drupal/Core/Entity/EntityListBuilder.php @@ -2,6 +2,7 @@ namespace Drupal\Core\Entity; +use Drupal\Core\Messenger\MessengerTrait; use Drupal\Core\Routing\RedirectDestinationTrait; use Drupal\Core\Url; use Symfony\Component\DependencyInjection\ContainerInterface; @@ -13,6 +14,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface; */ class EntityListBuilder extends EntityHandlerBase implements EntityListBuilderInterface, EntityHandlerInterface { + use MessengerTrait; use RedirectDestinationTrait; /** @@ -223,7 +225,7 @@ class EntityListBuilder extends EntityHandlerBase implements EntityListBuilderIn '#header' => $this->buildHeader(), '#title' => $this->getTitle(), '#rows' => [], - '#empty' => $this->t('There is no @label yet.', ['@label' => $this->entityType->getLabel()]), + '#empty' => $this->t('There are no @label yet.', ['@label' => $this->entityType->getPluralLabel()]), '#cache' => [ 'contexts' => $this->entityType->getListCacheContexts(), 'tags' => $this->entityType->getListCacheTags(),