You are here

protected static property MenuLinkMock::$defaults in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Menu/MenuLinkMock.php \Drupal\Tests\Core\Menu\MenuLinkMock::defaults

File

core/tests/Drupal/Tests/Core/Menu/MenuLinkMock.php, line 13

Class

MenuLinkMock
Defines a mock implementation of a menu link used in tests only.

Namespace

Drupal\Tests\Core\Menu

Code

protected static $defaults = [
  'menu_name' => 'mock',
  'route_name' => 'MUST BE PROVIDED',
  'route_parameters' => [],
  'url' => '',
  'title' => 'MUST BE PROVIDED',
  'title_arguments' => [],
  'title_context' => '',
  'description' => '',
  'parent' => 'MUST BE PROVIDED',
  'weight' => '0',
  'options' => [],
  'expanded' => '0',
  'enabled' => '1',
  'provider' => 'simpletest',
  'metadata' => [
    'cache_contexts' => [],
    'cache_tags' => [],
    'cache_max_age' => Cache::PERMANENT,
  ],
  'class' => 'Drupal\\Tests\\Core\\Menu\\MenuLinkMock',
  'form_class' => 'Drupal\\Core\\Menu\\Form\\MenuLinkDefaultForm',
  'id' => 'MUST BE PROVIDED',
];