Commit b9b67fa1 authored by gbyte.co's avatar gbyte.co Committed by gbyte.co

Issue #3118929 by DieterHolvoet, gbyte.co: Notice: Trying to access array...

Issue #3118929 by DieterHolvoet, gbyte.co: Notice: Trying to access array offset on value of type null
parent b4a7c85b
......@@ -96,8 +96,6 @@ abstract class SitemapGeneratorBase extends SimplesitemapPluginBase implements S
$this->languageManager = $language_manager;
$this->time = $time;
$this->writer = $sitemap_writer;
$this->sitemapVariant = $this->settings['default_variant'];
}
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
......@@ -119,6 +117,7 @@ abstract class SitemapGeneratorBase extends SimplesitemapPluginBase implements S
*/
public function setSitemapVariant($sitemap_variant) {
$this->sitemapVariant = $sitemap_variant;
return $this;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment