public function MenuSitemapDeriver::__construct in Sitemap 8.2
Same name and namespace in other branches
- 2.0.x 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
Namespace
Drupal\sitemap\Plugin\DerivativeCode
public function __construct(EntityStorageInterface $menu_storage) {
$this->menuStorage = $menu_storage;
}