You are here

public function SimpleSitemapDisplayExtender::isIndexingEnabled in Simple XML sitemap (Views integration) 8

Identify whether or not the current display indexing is enabled.

Return value

bool Indexing is enabled (TRUE) or not (FALSE).

1 call to SimpleSitemapDisplayExtender::isIndexingEnabled()
SimpleSitemapDisplayExtender::optionsSummary in src/Plugin/views/display_extender/SimpleSitemapDisplayExtender.php
Provide the default summary for options in the views UI.

File

src/Plugin/views/display_extender/SimpleSitemapDisplayExtender.php, line 292
Contains Simple XML Sitemap display extender.

Class

SimpleSitemapDisplayExtender
Simple XML Sitemap display extender plugin.

Namespace

Drupal\simple_sitemap_views\Plugin\views\display_extender

Code

public function isIndexingEnabled() {
  $settings = $this
    ->getSitemapSettings();
  return !empty($settings['index']);
}