You are here

protected static property MenuLinkMock::$defaults in Zircon Profile 8

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

File

core/tests/Drupal/Tests/Core/Menu/MenuLinkMock.php, line 18
Contains \Drupal\Tests\Core\Menu\MenuLinkMock.

Class

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

Namespace

Drupal\Tests\Core\Menu

Code

protected static $defaults = array(
  'menu_name' => 'mock',
  'route_name' => 'MUST BE PROVIDED',
  'route_parameters' => array(),
  'url' => '',
  'title' => 'MUST BE PROVIDED',
  'title_arguments' => array(),
  'title_context' => '',
  'description' => '',
  'parent' => 'MUST BE PROVIDED',
  'weight' => '0',
  'options' => array(),
  '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',
);