You are here

protected static function CheeseburgerMenuItem::applyDefaultMenuSettings in Cheeseburger Menu 5.0.x

Applies default values to missing settings.

Parameters

array $settings: Settings that should be modified.

1 call to CheeseburgerMenuItem::applyDefaultMenuSettings()
CheeseburgerMenuItem::applySettings in src/CheeseburgerMenuItem.php
Applies given settings to menu item.

File

src/CheeseburgerMenuItem.php, line 347

Class

CheeseburgerMenuItem
Cheeseburger menu item class.

Namespace

Drupal\cheeseburger_menu

Code

protected static function applyDefaultMenuSettings(array &$settings) {
  $settings += [
    'parent_as_link' => FALSE,
    'expanded' => FALSE,
    'active_trail' => [],
  ];
}