You are here

protected function CanonicalUrl::useDomainAccess in Search API Field Map 8

Same name and namespace in other branches
  1. 8.3 src/Plugin/search_api/processor/CanonicalUrl.php \Drupal\search_api_field_map\Plugin\search_api\processor\CanonicalUrl::useDomainAccess()
  2. 4.x src/Plugin/search_api/processor/CanonicalUrl.php \Drupal\search_api_field_map\Plugin\search_api\processor\CanonicalUrl::useDomainAccess()

Whether to use the canonical value from Domain Source.

Return value

bool

1 call to CanonicalUrl::useDomainAccess()
CanonicalUrl::addFieldValues in src/Plugin/search_api/processor/CanonicalUrl.php
Adds the values of properties defined by this processor to the item.

File

src/Plugin/search_api/processor/CanonicalUrl.php, line 83

Class

CanonicalUrl
Adds the Urls to the indexed data.

Namespace

Drupal\search_api_field_map\Plugin\search_api\processor

Code

protected function useDomainAccess() {
  return defined('DOMAIN_SOURCE_FIELD');
}