public function getInstalledPluginVersion(SolrAdminService $adminService)
    {
        $pluginsInformation = $adminService->getPluginsInformation();

        $description = $pluginsInformation->plugins->OTHER->{self::PLUGIN_CLASS_NAME}->description;
        $matches = [];
        preg_match_all('/.*\(Version: (?<version>[^\)]*)\)/ums', $description, $matches);
        $rawVersion = $matches['version'][0] ?? '';

        $explodedRawVersion = explode('-', $rawVersion);
        $version = $explodedRawVersion[0];

        return $version;
    }
public function getInstalledPluginVersion(SolrAdminService $adminService)
    {
        $pluginsInformation = $adminService->getPluginsInformation();

        $description = $pluginsInformation->plugins->OTHER->{self::PLUGIN_CLASS_NAME}->description;
        $matches = [];
        preg_match_all('/.*\(Version: (?<version>[^\)]*)\)/ums', $description, $matches);
        $rawVersion = $matches['version'][0] ?? '';

        $explodedRawVersion = explode('-', $rawVersion);
        $version = $explodedRawVersion[0];

        return $version;
    }
public function getInstalledPluginVersion ( SolrAdminService $ adminService ) { $ pluginsInformation = $ adminService -> getPluginsInformation ( ) ; $ description = $ pluginsInformation -> plugins -> OTHER -> { self :: PLUGIN_CLASS_NAME } -> description ; $ matches = [ ] ; preg_match_all ( '/.*\(Version: (?<version>[^\)]*)\)/ums' , $ description , $ matches ) ; $ rawVersion = $ matches [ 'version' ] [ 0 ] ?? '' ; $ explodedRawVersion = explode ( '-' , $ rawVersion ) ; $ version = $ explodedRawVersion [ 0 ] ; return $ version ; }
Gets the version of the installed plugin.

@param SolrAdminService $adminService
@return string The installed plugin's version number.
Gets the version of the installed plugin .