You are here

public function Domain::toString in Domain Access 8

Prevent render errors when Twig wants to read this object.

Return value

string The name of the domain being rendered.

See also

\Drupal\Core\Template\TwigExtension::escapeFilter()

File

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

Class

Domain
Defines the domain entity.

Namespace

Drupal\domain\Entity

Code

public function toString() {
  return $this->name;
}