You are here

public function XmlSitemapLinkStorage::__construct in XML sitemap 8

Same name and namespace in other branches
  1. 2.x src/XmlSitemapLinkStorage.php \Drupal\xmlsitemap\XmlSitemapLinkStorage::__construct()

Constructs a XmlSitemapLinkStorage object.

Parameters

\Drupal\Core\State\StateInterface $state: The state handler.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\Database\Connection $connection: The database connection.

File

src/XmlSitemapLinkStorage.php, line 60

Class

XmlSitemapLinkStorage
XmlSitemap link storage service class.

Namespace

Drupal\xmlsitemap

Code

public function __construct(StateInterface $state, ModuleHandlerInterface $module_handler, Connection $connection) {
  $this->state = $state;
  $this->moduleHandler = $module_handler;
  $this->anonymousUser = new AnonymousUserSession();
  $this->connection = $connection;
}