public function IdpForm::exist in SAML Service Provider 8.2
Same name and namespace in other branches
- 8.3 src/Form/IdpForm.php \Drupal\saml_sp\Form\IdpForm::exist()
- 4.x src/Form/IdpForm.php \Drupal\saml_sp\Form\IdpForm::exist()
- 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
Namespace
Drupal\saml_sp\FormCode
public function exist($id) {
$entity = $this->entityTypeManager
->getStorage('idp')
->getQuery()
->condition('id', $id)
->execute();
return (bool) $entity;
}