You are here

public function BookSitemapDeriver::__construct in Sitemap 2.0.x

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

Constructs new SitemapBooks sitemap_map.

Parameters

\Drupal\book\BookManagerInterface $book_manager: The book manager.

File

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

Class

BookSitemapDeriver

Namespace

Drupal\sitemap\Plugin\Derivative

Code

public function __construct(BookManagerInterface $book_manager) {
  $this->bookManager = $book_manager;
}