Elastica\Node\Info::hasPlugin PHP Method

hasPlugin() public method

Check if the given plugin is installed on this node.
public hasPlugin ( string $name ) : boolean
$name string plugin name
return boolean true if the plugin is installed, false otherwise
    public function hasPlugin($name)
    {
        foreach ($this->getPlugins() as $plugin) {
            if ($plugin['name'] == $name) {
                return true;
            }
        }
        return false;
    }