You are here

public function DomainPath::getDomainId in Domain Path 8

Get domain id for domain_path.

Return value

string Returns domain path domain id.

Overrides DomainPathInterface::getDomainId

File

src/Entity/DomainPath.php, line 193
Contains \Drupal\domain_path\Entity\DomainPath.

Class

DomainPath
Defines the DomainPath entity.

Namespace

Drupal\domain_path\Entity

Code

public function getDomainId() {
  return $this
    ->get('domain_id')->target_id;
}