You are here

public function SimpleSitemapViews::isValidDisplay in Simple XML sitemap (Views integration) 8

Callback for filtering view displays.

Parameters

array $display: The display options.

Return value

bool The display is valid (TRUE) or not (FALSE).

File

src/SimpleSitemapViews.php, line 297
Contains simple_sitemap_views service.

Class

SimpleSitemapViews
Class to manage sitemap data for views.

Namespace

Drupal\simple_sitemap_views

Code

public function isValidDisplay(array $display) {
  $display_plugins = $this
    ->getDisplayPathPluginIds();
  return !empty($display['display_plugin']) && in_array($display['display_plugin'], $display_plugins);
}