public function WebformContentCreatorForm::exist in Webform Content Creator 2.x
Same name and namespace in other branches
- 8 src/Form/WebformContentCreatorForm.php \Drupal\webform_content_creator\Form\WebformContentCreatorForm::exist()
- 3.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 215
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);
}