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

Adding some annotation.

parent 31337932
......@@ -185,6 +185,12 @@ class Simplesitemap {
$this->save_config('settings', $settings);
}
/**
* Returns a 'time ago' string of last timestamp generation.
*
* @return mixed
* Formatted timestamp of last sitemap generation, otherwise FALSE.
*/
public function get_generated_ago() {
if (isset($this->sitemap[0]->sitemap_created)) {
return \Drupal::service('date.formatter')
......
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