Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / block_content / src / Entity / BlockContentType.php
index 339b4e5033873b7fe07d154a38451623e28a97c6..20f9593b82f5a54cbcea5a7a644b88b8d83abc8f 100644 (file)
@@ -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",