public function ExternalLinkPopupForm::exist in External Link Pop-up 8
Helper function to check whether an Example configuration entity exists.
File
- src/
Form/ ExternalLinkPopupForm.php, line 148
Class
- ExternalLinkPopupForm
- Form handler for the External Link Pop-up add and edit forms.
Namespace
Drupal\external_link_popup\FormCode
public function exist($id) {
$entity = $this->entityTypeManager
->getStorage('external_link_popup')
->getQuery()
->condition('id', $id)
->execute();
return (bool) $entity;
}