- πΊπΈUnited States smustgrave
Should be addressed in π Remove BlockContentController::Add Needs work
Noticed this while reviewing π Move custom block types admin link to admin/structure Fixed .
The block_content_type
Entity Type does not provide an add
link template in its entity type annotation:
* links = {
* "delete-form" = "/admin/structure/block/block-content/manage/{block_content_type}/delete",
* "edit-form" = "/admin/structure/block/block-content/manage/{block_content_type}",
* "entity-permissions-form" = "/admin/structure/block/block-content/manage/{block_content_type}/permissions",
* "collection" = "/admin/structure/block/block-content/types",
* },
Currently, the add
route is provided in block_content.routing.yml and the route name does not follow the established pattern, block_content.type_add
where it should be entity.block_content_type.add
.
Provide a add
link template in the block_content_type
entity annotation.
Since block_content_type
already uses the AdminHtmlRouteProvider
this will automatically generate the entity.block_content_type.add
route.
The block_content.type_add
route can then be deprecated, this requires
π
Support route aliasing (Symfony 5.4) and allow deprecating the route name
Needs work
to be committed, so postponing on that issue.
Closed: duplicate
11.0 π₯
Last updated
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Should be addressed in π Remove BlockContentController::Add Needs work