public function EntityHelper::getSupportedEntityTypes in Simple XML sitemap 4.x
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/
Entity/ EntityHelper.php - Gets the entity IDs by entity type and bundle.
File
- src/
Entity/ EntityHelper.php, line 102
Class
- EntityHelper
- Helper class for working with entities.
Namespace
Drupal\simple_sitemap\EntityCode
public function getSupportedEntityTypes() : array {
return array_filter($this->entityTypeManager
->getDefinitions(), [
$this,
'supports',
]);
}