public function TagSet::hasTagName in Extensible BBCode 4.0.x
Same name and namespace in other branches
- 8.3 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 101
Class
- TagSet
- Represents a set of configured tags.
Namespace
Drupal\xbbcode\EntityCode
public function hasTagName(string $name) : bool {
return array_key_exists($name, $this->tags);
}