X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fblock_content%2Fsrc%2FEntity%2FBlockContentType.php;h=20f9593b82f5a54cbcea5a7a644b88b8d83abc8f;hb=5b8bb166bfa98770daef9de5c127fc2e6ef02340;hp=339b4e5033873b7fe07d154a38451623e28a97c6;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/block_content/src/Entity/BlockContentType.php b/web/core/modules/block_content/src/Entity/BlockContentType.php index 339b4e503..20f9593b8 100644 --- a/web/core/modules/block_content/src/Entity/BlockContentType.php +++ b/web/core/modules/block_content/src/Entity/BlockContentType.php @@ -11,6 +11,14 @@ use Drupal\block_content\BlockContentTypeInterface; * @ConfigEntityType( * id = "block_content_type", * label = @Translation("Custom block type"), + * label_collection = @Translation("Custom block types"), + * label_singular = @Translation("custom block type"), + * label_plural = @Translation("custom block types"), + * label_count = @PluralTranslation( + * singular = "@count custom block type", + * plural = "@count custom block types", + * ), + * label_collection = @Translation("Custom block library"), * handlers = { * "form" = { * "default" = "Drupal\block_content\BlockContentTypeForm", @@ -18,6 +26,9 @@ use Drupal\block_content\BlockContentTypeInterface; * "edit" = "Drupal\block_content\BlockContentTypeForm", * "delete" = "Drupal\block_content\Form\BlockContentTypeDeleteForm" * }, + * "route_provider" = { + * "html" = "Drupal\Core\Entity\Routing\AdminHtmlRouteProvider" + * }, * "list_builder" = "Drupal\block_content\BlockContentTypeListBuilder" * }, * admin_permission = "administer blocks",