- First commit to issue fork.
- Merge request !5143Issue #3346394: Deprecation BlockContentController::Add β (Open) created by _shy
- last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago 30,422 pass, 14 fail - Status changed to Needs work
over 1 year ago 8:20pm 26 October 2023 - πΊπ¦Ukraine _shy Ukraine, Lutsk πΊπ¦
I'm not sure if the function
\Drupal\Core\Entity\Controller\EntityController::addPage()
fits for that because this function has an argument$entity_type_id
that should be passed from the route.Or, I just missed something important here.
- π¬π§United Kingdom joachim
There is no need to deprecate - core controllers aren't part of the api unless marked as such.
- πΊπΈUnited States smustgrave
Pushed up some attempts. But currently have an issue where
Create 2 block types
Create a test editor and assign permissions for just 1 block type
Login and try and create a block
Button doesn't do anything. - π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
smustgrave β credited larowlan β .
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
I think we'll need to make sure we keep the same route name for BC sake so if we move to a route provider, overriding the default name of entity.block_content.add_page to be the same as now will be required.
- πΊπΈUnited States smustgrave
block_content.add_form: '/block/add/{block_content_type}' block_content.add_page: /block/add block_content.type_add: /admin/structure/block-content/add block_content.type_add.bc: /admin/structure/block/block-content/types/add block_content.add_form: '/block/add/{block_content_type}' block_content.add_page: /block/add block_content.type_add: /admin/structure/block-content/add block_content.type_add.bc: /admin/structure/block/block-content/types/add
So routes end up staying the same, so we are good.
For #11 I removed the line adding the destination parameter to the "Add content block" button. Adding a block still redirect
- Assigned to smustgrave
- π¬π§United Kingdom AaronMcHale Edinburgh, Scotland
smustgrave β credited AaronMcHale β .
- πΊπΈUnited States smustgrave
Closed π [PP-1] Provide a "add" link template for the block_content_type entity type Closed: duplicate as a duplicate
- Issue was unassigned.
- πΊπΈUnited States smustgrave
Think need approval on the removal of the destination parameter.
The failures I currently have no clue about. Clearly missing a route setting