public function GeneratorInterface::menuItem in Style Guide 8
Same name and namespace in other branches
- 2.x src/GeneratorInterface.php \Drupal\styleguide\GeneratorInterface::menuItem()
Generate a random menu item.
Parameters
string $url: The internal path or external URL being linked to.
Return value
array A random menu item, see menu_tree_page_data for a description of the data structure.
1 method overrides GeneratorInterface::menuItem()
- Generator::menuItem in src/
Generator.php - Generate a random menu item.
File
- src/
GeneratorInterface.php, line 151
Class
- GeneratorInterface
- Interface GeneratorInterface.
Namespace
Drupal\styleguideCode
public function menuItem($url);