X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fentity%2Fsrc%2FPlugin%2FAction%2FDerivative%2FDeleteActionDeriver.php;fp=web%2Fmodules%2Fcontrib%2Fentity%2Fsrc%2FPlugin%2FAction%2FDerivative%2FDeleteActionDeriver.php;h=1f7d76b8d9bdaa637033e9ecff10730a3a01ce3f;hp=085bd0ee0fdda872b8e74cbd19d42e02fc27fc29;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/modules/contrib/entity/src/Plugin/Action/Derivative/DeleteActionDeriver.php b/web/modules/contrib/entity/src/Plugin/Action/Derivative/DeleteActionDeriver.php index 085bd0ee0..1f7d76b8d 100644 --- a/web/modules/contrib/entity/src/Plugin/Action/Derivative/DeleteActionDeriver.php +++ b/web/modules/contrib/entity/src/Plugin/Action/Derivative/DeleteActionDeriver.php @@ -46,7 +46,7 @@ class DeleteActionDeriver extends DeriverBase implements ContainerDeriverInterfa $definitions = []; foreach ($this->getParticipatingEntityTypes() as $entity_type_id => $entity_type) { $definition = $base_plugin_definition; - $definition['label'] = t('Delete @entity_type', ['@entity_type' => $entity_type->getLowercaseLabel()]); + $definition['label'] = t('Delete @entity_type', ['@entity_type' => $entity_type->getSingularLabel()]); $definition['type'] = $entity_type_id; $definition['confirm_form_route_name'] = 'entity.' . $entity_type_id . '.delete_multiple_form'; $definitions[$entity_type_id] = $definition; @@ -69,7 +69,7 @@ class DeleteActionDeriver extends DeriverBase implements ContainerDeriverInterfa protected function getParticipatingEntityTypes() { $entity_types = $this->entityTypeManager->getDefinitions(); $entity_types = array_filter($entity_types, function (EntityTypeInterface $entity_type) { - return $entity_type->isSubclassOf(ContentEntityInterface::class) && $entity_type->hasLinkTemplate('delete-multiple-form'); + return $entity_type->entityClassImplements(ContentEntityInterface::class) && $entity_type->hasLinkTemplate('delete-multiple-form'); }); return $entity_types;