\Drupal::logger('simple_sitemap')->notice($message);//todo DI
drupal_set_message($message,$type);
}
/**
* Batch callback function which generates urls to entity paths.
...
...
@@ -300,7 +286,7 @@ class BatchUrlGenerator {
}
if(!$this->pathValidator->isValid($custom_path['path'])){//todo: Change to different function, as this also checks if current user has access. The user however varies depending if process was started from the web interface or via cron/drush. Use getUrlIfValidWithoutAccessCheck()?