public function SiteimproveUtils::getEntityDomains in Siteimprove 8
Get active domain names for entity.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: Entity to get domain names for.
Return value
array Array of domain names without trailing slash.
1 call to SiteimproveUtils::getEntityDomains()
- SiteimproveUtils::getEntityUrls in src/
SiteimproveUtils.php - Return frontend urls for given entity.
File
- src/
SiteimproveUtils.php, line 277
Class
- SiteimproveUtils
- Utility functions for Siteimprove.
Namespace
Drupal\siteimproveCode
public function getEntityDomains(EntityInterface $entity) {
// Get the active frontend domain plugin.
$config = $this->configFactory
->get('siteimprove.settings');
/** @var \Drupal\siteimprove\Plugin\SiteimproveDomainBase $plugin */
$plugin = $this->siteimproveDomainManager
->createInstance($config
->get('domain_plugin_id'));
// Get active domains.
return $plugin
->getUrls($entity);
}