private function generate_entity_links() { foreach ($this->entity_types as $entity_type => $bundles) { $class_path = Simplesitemap::get_plugin_path($entity_type); if ($class_path !== FALSE) { require_once $class_path; $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 = array_merge($this->links, $links); } } }