public function DomainAccess::getUrls in Siteimprove 8
Return urls for active domains for this entity.
If http/https isn't specified in domain name, use the backend's scheme.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: Entity to get active domain names for.
Return value
array Array of domain names without trailing slash.
Overrides SiteimproveDomainBase::getUrls
File
- siteimprove_domain_access/
src/ Plugin/ SiteimproveDomain/ DomainAccess.php, line 42
Class
- DomainAccess
- Provides simple plugin instance of Siteimprove Domain settings.
Namespace
Drupal\siteimprove_domain_access\Plugin\SiteimproveDomainCode
public function getUrls(EntityInterface $entity) {
$domain = \Drupal::service('domain_access.manager');
return $domain
->getContentUrls($entity);
}