You are here

public function MenuSitemapDeriver::__construct in Sitemap 2.0.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/Derivative/MenuSitemapDeriver.php \Drupal\sitemap\Plugin\Derivative\MenuSitemapDeriver::__construct()

Constructs new SitemapMenus sitemap_map.

Parameters

\Drupal\Core\Entity\EntityStorageInterface $menu_storage: The menu storage.

File

src/Plugin/Derivative/MenuSitemapDeriver.php, line 28

Class

MenuSitemapDeriver

Namespace

Drupal\sitemap\Plugin\Derivative

Code

public function __construct(EntityStorageInterface $menu_storage) {
  $this->menuStorage = $menu_storage;
}