Commit 1da98fd4 authored by gbyte.co's avatar gbyte.co

Add some formatting

parent 9e85d479
......@@ -500,7 +500,7 @@ class FormHelper {
*/
public function getChangefreqSelectValues() {
$options = ['' => $this->t('- Not specified -')];
foreach (self::$changefreqValues as $setting) {
foreach (self::getChangefreqOptions() as $setting) {
$options[$setting] = $this->t($setting);
}
return $options;
......
......@@ -127,7 +127,6 @@ class QueueWorker {
public function rebuildQueue($variants = NULL) {
$all_data_sets = [];
$sitemap_variants = $this->manager->getSitemapVariants();
$type_definitions = $this->manager->getSitemapTypes();
$this->deleteQueue();
......
......@@ -703,7 +703,7 @@ class Simplesitemap {
*
* @return array|false
* Array of entity instance settings or the settings of its bundle. False if
* entity type does not exist.
* entity type or variant does not exist.
*
* @throws \Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
* @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException
......
......@@ -162,14 +162,6 @@ class SimplesitemapManager {
return array_map(function($variant) use ($type) { return $variant + ['type' => $type]; }, $variants);
}
/**
* @param array $variants
* @return array
*/
protected function detachSitemapTypeFromVariants(array $variants) {
return array_map(function($variant) { unset($variant['type']); return $variant; }, $variants);
}
/**
* @param string $name
* @param array $definition
......
/**
* @file
* JavaScript file for sitemap.
* Alters jquery.tablesorter behaviour.
*/
(function ($) {
......
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