You are here

public function IdpForm::exist in SAML Service Provider 8.2

Same name and namespace in other branches
  1. 8.3 src/Form/IdpForm.php \Drupal\saml_sp\Form\IdpForm::exist()
  2. 4.x src/Form/IdpForm.php \Drupal\saml_sp\Form\IdpForm::exist()
  3. 3.x src/Form/IdpForm.php \Drupal\saml_sp\Form\IdpForm::exist()

File

src/Form/IdpForm.php, line 308
Contains \Drupal\saml_sp\Form\SamlSpIdpAdd.

Class

IdpForm

Namespace

Drupal\saml_sp\Form

Code

public function exist($id) {
  $entity = $this->entityTypeManager
    ->getStorage('idp')
    ->getQuery()
    ->condition('id', $id)
    ->execute();
  return (bool) $entity;
}