public function WebformContentCreatorForm::exist in Webform Content Creator 8
Same name and namespace in other branches
- 3.x src/Form/WebformContentCreatorForm.php \Drupal\webform_content_creator\Form\WebformContentCreatorForm::exist()
- 2.x src/Form/WebformContentCreatorForm.php \Drupal\webform_content_creator\Form\WebformContentCreatorForm::exist()
Helper function to check whether a Webform content creator entity exists.
Parameters
string $id: Entity id.
Return value
bool True if entity already exists.
File
- src/
Form/ WebformContentCreatorForm.php, line 151
Class
- WebformContentCreatorForm
- Form handler for the Webform content creator add and edit forms.
Namespace
Drupal\webform_content_creator\FormCode
public function exist($id) {
return WebformContentCreatorUtilities::existsWebformContentCreatorEntity($id);
}