You are here

public function EntityManager::entityTypeIsEnabled in Simple XML sitemap 4.x

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

Parameters

string $entity_type_id:

Return value

bool

File

src/Manager/EntityManager.php, line 496

Class

EntityManager
Class EntityManager

Namespace

Drupal\simple_sitemap\Manager

Code

public function entityTypeIsEnabled(string $entity_type_id) : bool {
  return in_array($entity_type_id, $this->settings
    ->get('enabled_entity_types', []), TRUE);
}