You are here

public function SimpleSitemapViews::isEnabled in Simple XML sitemap 4.x

Same name and namespace in other branches
  1. 8.3 modules/simple_sitemap_views/src/SimpleSitemapViews.php \Drupal\simple_sitemap_views\SimpleSitemapViews::isEnabled()

Checks that views support is enabled.

Return value

bool Returns TRUE if support is enabled, and FALSE otherwise.

1 call to SimpleSitemapViews::isEnabled()
SimpleSitemapViews::getIndexableViews in modules/simple_sitemap_views/src/SimpleSitemapViews.php
Returns an array of executable views whose current display is indexable.

File

modules/simple_sitemap_views/src/SimpleSitemapViews.php, line 93

Class

SimpleSitemapViews
Class to manage sitemap data for views.

Namespace

Drupal\simple_sitemap_views

Code

public function isEnabled() : bool {

  // Support enabled when views display extender is enabled.
  $enabled = Views::getEnabledDisplayExtenders();
  return isset($enabled[self::PLUGIN_ID]);
}