public function EntityHelper::getSupportedEntityTypes in Simple XML sitemap 8.3
Same name and namespace in other branches
- 8.2 src/EntityHelper.php \Drupal\simple_sitemap\EntityHelper::getSupportedEntityTypes()
Returns objects of entity types that can be indexed.
Return value
array Objects of entity types that can be indexed by the sitemap.
1 call to EntityHelper::getSupportedEntityTypes()
- EntityHelper::getEntityInstanceIds in src/
EntityHelper.php - Gets the entity IDs by entity type and bundle.
File
- src/
EntityHelper.php, line 106
Class
- EntityHelper
- Helper class for working with entities.
Namespace
Drupal\simple_sitemapCode
public function getSupportedEntityTypes() {
return array_filter($this->entityTypeManager
->getDefinitions(), [
$this,
'supports',
]);
}