You are here

public function TagPluginCollection::has in Extensible BBCode 8.3

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

Determines if a plugin instance exists.

Parameters

string $instance_id: The ID of the plugin instance to check.

Return value

bool TRUE if the plugin instance exists, FALSE otherwise.

Overrides LazyPluginCollection::has

File

src/TagPluginCollection.php, line 166

Class

TagPluginCollection
A collection of tag plugins.

Namespace

Drupal\xbbcode

Code

public function has($instance_id) : bool {

  // This method is only overridden to hint the return type.
  return (bool) parent::has($instance_id);
}