Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
By Gábor Hojtsy on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Introduced in version:
8.0
Issue links:
Description:
Entity information annotations included support for menu_base_path, menu_view_path, menu_edit_path and menu_path_wildcard, however these duplicated the role of the links array elements (canonical, edit-form, etc). Content translation module now uses the links annotations, so the menu_* keys are not anymore supported / required.
BEFORE:
* base_table = "custom_block",
* revision_table = "custom_block_revision",
* route_base_path = "admin/structure/block/custom-blocks/manage/{bundle}",
* menu_base_path = "block/%custom_block",
* menu_edit_path = "block/%custom_block",
* fieldable = TRUE,
* translatable = TRUE,
AFTER:
* base_table = "custom_block",
* revision_table = "custom_block_revision",
* route_base_path = "admin/structure/block/custom-blocks/manage/{bundle}",
* links = {
* "canonical" = "/block/{custom_block}",
* "edit-form" = "/block/{custom_block}"
* },
* fieldable = TRUE,
* translatable = TRUE,
These annotations are already used to generate entity URIs automatically and possibly for other automations.