|
@@ -34,16 +34,25 @@ use Drupal\Core\Entity\ContentEntityBase;
|
|
|
* "status" = "status",
|
|
|
* "author" = "uid",
|
|
|
* },
|
|
|
- * bundle_entity_type = "node_type",
|
|
|
+ * handlers = {
|
|
|
+ * "route_provider" = {
|
|
|
+ * "html" = "Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider",
|
|
|
+ * }
|
|
|
+ * },
|
|
|
+ * bundle_entity_type = "blog_type",
|
|
|
* field_ui_base_route = "entity.blog_type.edit_form",
|
|
|
* permission_granularity = "entity_type",
|
|
|
* links = {
|
|
|
+ * "add-form" = "/admin/content/blog/add/{blog_type}",
|
|
|
+ * "add-page" = "/admin/content/blog/add",
|
|
|
* "canonical" = "/blog/{blog}",
|
|
|
+ * "collection" = "/admin/content/blog",
|
|
|
* "delete-form" = "/blog/{blog}/delete",
|
|
|
* "edit-form" = "/blog/{blog}/edit",
|
|
|
- * "version-history" = "/blog/{blog}/revisions",
|
|
|
* "revision" = "/blog/{blog}/revisions/{blog_revision}/view",
|
|
|
- * }
|
|
|
+ * "version-history" = "/blog/{blog}/revisions"
|
|
|
+ * },
|
|
|
+ * admin_permission = "administer blog",
|
|
|
* )
|
|
|
*/
|
|
|
class Blog extends ContentEntityBase {
|