You are here

public function TagSetForm::exists in Extensible BBCode 8.3

Same name and namespace in other branches
  1. 4.0.x src/Form/TagSetForm.php \Drupal\xbbcode\Form\TagSetForm::exists()

Determines if the tag already exists.

Parameters

string $id: The tag set ID.

Return value

bool TRUE if the tag set exists, FALSE otherwise.

File

src/Form/TagSetForm.php, line 186

Class

TagSetForm
Base form for tag sets.

Namespace

Drupal\xbbcode\Form

Code

public function exists($id) : bool {
  return (bool) $this->tagStorage
    ->getQuery()
    ->condition('id', $id)
    ->execute();
}