Change record status: 
Project: 
Introduced in branch: 
11.1.x
Introduced in version: 
11.1.0
Description: 

#3478224: Provide Config Action to add new blocks to navigation from recipes added a very simple new config action that can be used to add new blocks to Navigation.

You can use it like this:

config:
  actions:
    navigation.block_layout:
      addNavigationBlock:
        delta: 1
        configuration:
          id: 'navigation_menu:content'
          label: Content From Recipe
          label_display: 1
          provider: navigation
          level: 1
          depth: 2

That's it. The name of the action is addNavigationBlock, and its arguments are:

  • delta: The position in the navigation the block is going to be added
  • configuration: The configuration array for the navigation item

This action can be only used against the navigation.block_layout config.

Impacts: 
Module developers