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