MenuLinkMock::$defaults
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Menu/MenuLinkMock.php \Drupal\Tests\Core\Menu\MenuLinkMock::defaults
- 8.9.x core/tests/Drupal/Tests/Core/Menu/MenuLinkMock.php \Drupal\Tests\Core\Menu\MenuLinkMock::defaults
- 11.x core/tests/Drupal/Tests/Core/Menu/MenuLinkMock.php \Drupal\Tests\Core\Menu\MenuLinkMock::defaults
Type: defaults
File
-
core/
tests/ Drupal/ Tests/ Core/ Menu/ MenuLinkMock.php, line 15
Class
- MenuLinkMock
- Defines a mock implementation of a menu link used in tests only.
Namespace
Drupal\Tests\Core\MenuCode
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' => 'test',
'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',
];
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.