public function LazyPluginCollection::has in Plug 7
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.
File
- lib/
Drupal/ Component/ Plugin/ LazyPluginCollection.php, line 73 - Contains \Drupal\Component\Plugin\LazyPluginCollection.
Class
- LazyPluginCollection
- Defines an object which stores multiple plugin instances to lazy load them.
Namespace
Drupal\Component\PluginCode
public function has($instance_id) {
return isset($this->pluginInstances[$instance_id]) || isset($this->instanceIDs[$instance_id]);
}