You are here

public function WebformContentCreatorForm::exist in Webform Content Creator 3.x

Same name and namespace in other branches
  1. 8 src/Form/WebformContentCreatorForm.php \Drupal\webform_content_creator\Form\WebformContentCreatorForm::exist()
  2. 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 155

Class

WebformContentCreatorForm
Form handler for the Webform content creator add and edit forms.

Namespace

Drupal\webform_content_creator\Form

Code

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