You are here

public function Domain::setMatchType in Domain Access 8

Sets the type of record match returned by the negotiator.

Parameters

int $match_type: A numeric constant indicating the type of match derived by the caller. Use this value to determine if the request needs to be overridden. Valid types are DomainNegotiatorInterface::DOMAIN_MATCH_NONE, DomainNegotiatorInterface::DOMAIN_MATCH_EXACT, DomainNegotiatorInterface::DOMAIN_MATCH_ALIAS.

Overrides DomainInterface::setMatchType

File

domain/src/Entity/Domain.php, line 526

Class

Domain
Defines the domain entity.

Namespace

Drupal\domain\Entity

Code

public function setMatchType($match_type = DomainNegotiatorInterface::DOMAIN_MATCHED_EXACT) {
  $this->matchType = $match_type;
}