You are here

public function Simplesitemap::entityTypeIsEnabled in Simple XML sitemap 8.3

Same name and namespace in other branches
  1. 8.2 src/Simplesitemap.php \Drupal\simple_sitemap\Simplesitemap::entityTypeIsEnabled()

Checks if an entity type is enabled in the sitemap settings.

Parameters

string $entity_type_id:

Return value

bool

File

src/Simplesitemap.php, line 847

Class

Simplesitemap
Class Simplesitemap @package Drupal\simple_sitemap

Namespace

Drupal\simple_sitemap

Code

public function entityTypeIsEnabled($entity_type_id) {
  return in_array($entity_type_id, $this
    ->getSetting('enabled_entity_types', []));
}