3

It looks like a proper fix for this has been added to the latest version of core, 8.8+, see #2863188 Hardcoded result size limit in the entity reference autocomplete widget.


2

Menu items are saved in the DB, therefore you must update them using update hooks. Something like this should work: function MODULE_NAME_update_N() { $menu_link_id = 1; $menu_link = menu_link_load($menu_link_id); $menu_link['hidden'] = 0; menu_link_save($menu_link); }


2

The _node_operation_route option respect the Use the administration theme when editing or creating content, if you want to explicitly disable admin theme for this node-related page don't use _node_operation_route The _node_operation_route option overrides _admin_route https://api.drupal.org/api/drupal/core%21modules%21node%21src%21EventSubscriber%...


1

To set if the node has menu link you can use menu_ui_get_menu_link_defaults function from menu_ui.module something like: /** * Implements hook_preprocess_HOOK(). */ function YOUMODULE_preprocess_page(&$vars) { /** @var \Drupal\node\Entity\Node $node */ if ($node = \Drupal::routeMatch()->getParameter('node')) { // Get the default menu link. ...


1

Menu items are sore in the database. You are still able to export the menu using a contrib module. For Drupal 7 You can achieve that by using Menu Export/Import contrib module. For Drupal 8 You can achieve that by using Menu Import and Export. The module will give you the ability to exports the menu entity as config YAML and will be imported on ...


Only top voted, non community-wiki answers of a minimum length are eligible