You are here

public function TagSet::hasTagName in Extensible BBCode 8.3

Same name and namespace in other branches
  1. 4.0.x src/Entity/TagSet.php \Drupal\xbbcode\Entity\TagSet::hasTagName()

Check if any tag plugin has a particular name.

Parameters

string $name: Tag name.

Return value

bool TRUE if the tag set has assigned this name to a plugin.

Overrides TagSetInterface::hasTagName

File

src/Entity/TagSet.php, line 102

Class

TagSet
Represents a set of configured tags.

Namespace

Drupal\xbbcode\Entity

Code

public function hasTagName($name) : bool {
  return array_key_exists($name, $this->tags);
}