You are here

public function CrossdomainFormController::exists in Crossdomain 8

Determines if the domain already exists.

Parameters

string $entity_id: The entity ID

Return value

bool TRUE if the entity exists, FALSE otherwise.

File

lib/Drupal/crossdomain/Controller/CrossdomainFormController.php, line 112

Class

CrossdomainFormController

Namespace

Drupal\crossdomain\Controller

Code

public function exists($entity_id) {
  return (bool) $this->queryFactory
    ->get('crossdomain')
    ->condition('id', $entity_id)
    ->execute();
}