Menus
DrevOps\BehatSteps\Steps\Drupal\MenuTrait - Source, Steps
Manage Drupal menus and menu links.
public function menuCreate(array $values): EntityStubInterface
Create a menu
public function menuCreateLink(EntityStubInterface $menu, array $values): EntityStubInterface
Create a link in a menu
public function menuDeleteLink(string $menu_name, array $conditions): void
Delete the links of a menu that match conditions
public function menuFindByLabel(string $label): ?EntityStubInterface
Find a menu by its label
public function menuFindLinkByTitle(string $title, string $menu_name): ?EntityStubInterface
Find a menu link by title and menu label
public function menuLoadMultiple(array $conditions = []): array
Load multiple menus with specified conditions