function LinkGeneratorBase::__construct in Simple XML sitemap 8
Constructs a \Drupal\Component\Plugin\PluginBase object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
Overrides PluginBase::__construct
File
- src/
LinkGeneratorBase.php, line 25 - Contains \Drupal\simplesitemap\LinkGeneratorBase.
Class
Namespace
Drupal\simplesitemapCode
function __construct() {
$this->anonymous_account = User::load(self::ANONYMOUS_USER_ID);
$this->languages = \Drupal::languageManager()
->getLanguages();
$this->default_language_id = \Drupal::languageManager()
->getDefaultLanguage()
->getId();
}