Commit 15ab1131 authored by gbyte.co's avatar gbyte.co

Fixed taxonomy term link collection.

parent fbd03108
......@@ -20,7 +20,7 @@ use Drupal\simplesitemap\LinkGenerators\EntityLinkGenerator;
use Drupal\Core\Url;
/**
* Node class.
* node class.
*/
class node extends EntityLinkGenerator {
......
......@@ -14,7 +14,7 @@ use Drupal\simplesitemap\LinkGenerators\EntityLinkGenerator;
use Drupal\Core\Url;
/**
* EntityLinkGenerator class.
* taxonomy_term class.
*/
class taxonomy_term extends EntityLinkGenerator {
......
......@@ -68,7 +68,7 @@ class SitemapGenerator {
private function generate_custom_links() {
$link_generator = new CustomLinkGenerator();
$links = $link_generator->get_custom_links($this->custom , $this->language);
$this->links += $links;
$this->links = array_merge($this->links, $links);
}
// Add entity type links.
......@@ -80,7 +80,7 @@ class SitemapGenerator {
$class_name = "Drupal\\simplesitemap\\LinkGenerators\\EntityTypeLinkGenerators\\$entity_type";
$link_generator = new $class_name();
$links = $link_generator->get_entity_links($entity_type, $bundles, $this->language);
$this->links += $links;
$this->links = array_merge($this->links, $links);
}
}
}
......
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