You are here

public function WebformContentCreatorManageFieldsForm::exist in Webform Content Creator 8

Same name and namespace in other branches
  1. 3.x src/Form/WebformContentCreatorManageFieldsForm.php \Drupal\webform_content_creator\Form\WebformContentCreatorManageFieldsForm::exist()
  2. 2.x src/Form/WebformContentCreatorManageFieldsForm.php \Drupal\webform_content_creator\Form\WebformContentCreatorManageFieldsForm::exist()

Helper function to check whether a Webform content creator entity exists.

Parameters

mixed $id: Entity id.

Return value

bool True if entity already exists.

File

src/Form/WebformContentCreatorManageFieldsForm.php, line 249

Class

WebformContentCreatorManageFieldsForm
Form handler for the Webform content creator manage fields form.

Namespace

Drupal\webform_content_creator\Form

Code

public function exist($id) {
  return WebformContentCreatorUtilities::existsWebformContentCreatorEntity($id);
}