public function DomainSourcePathProcessor::getEntityTypes in Domain Access 8
Gets an array of content entity types, keyed by type.
Return value
\Drupal\Core\Entity\EntityTypeInterface[] An array of content entity types, keyed by type.
1 call to DomainSourcePathProcessor::getEntityTypes()
- DomainSourcePathProcessor::getEntity in domain_source/
src/ HttpKernel/ DomainSourcePathProcessor.php - Derive entity data from a given route's parameters.
File
- domain_source/
src/ HttpKernel/ DomainSourcePathProcessor.php, line 236
Class
- DomainSourcePathProcessor
- Processes the outbound path using path alias lookups.
Namespace
Drupal\domain_source\HttpKernelCode
public function getEntityTypes() {
if (!isset($this->entityTypes)) {
foreach ($this->entityTypeManager
->getDefinitions() as $type => $definition) {
if ($definition
->getGroup() == 'content') {
$this->entityTypes[$type] = $type;
}
}
}
return $this->entityTypes;
}