I am trying to create a menu via YAML Content as below

# menu.content.yml
- entity: menu
  id: 'my-main-menu'
  label: 'My Main menu'
  description: 'Description of main menu'

Despite a PHP warning array_key_exists() expects parameter 2 to be array, null given EntityLoadHelper.php:286, the menu is created but it has no description.

Comments

sonnykt created an issue. See original summary.

sonnykt’s picture

Status: Active » Needs review
StatusFileSize
new910 bytes

This patch is to fix the PHP warning and add better support for Config entities.

sonnykt’s picture

StatusFileSize
new1.02 KB

Fixed PHP warning.

damienmckenna’s picture

damienmckenna’s picture

Status: Needs review » Fixed

Committed, with some whitespace fixes.

  • DamienMcKenna committed 89de0a6 on 8.x-1.x authored by sonnykt
    Issue #3068015 by sonnykt, DamienMcKenna: Better support for Config...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.