public function manipulateCacheActions(&$cacheActions, &$optionValues)
    {
        if (!$this->backendUser->isAdmin()) {
            return;
        }

        $href = $this->uriBuilder->buildUriFromRoute('ajax_solr_updateConnections');
        $optionValues[] = 'clearSolrConnectionCache';
        $cacheActions[] = [
            'id' => 'clearSolrConnectionCache',
            'title' => 'LLL:EXT:solr/Resources/Private/Language/locallang.xlf:cache_initialize_solr_connections',
            'href' => $href,
            'iconIdentifier' => 'extensions-solr-module-initsolrconnections'
        ];
    }
public function manipulateCacheActions(&$cacheActions, &$optionValues)
    {
        if (!$this->backendUser->isAdmin()) {
            return;
        }

        $href = $this->uriBuilder->buildUriFromRoute('ajax_solr_updateConnections');
        $optionValues[] = 'clearSolrConnectionCache';
        $cacheActions[] = [
            'id' => 'clearSolrConnectionCache',
            'title' => 'LLL:EXT:solr/Resources/Private/Language/locallang.xlf:cache_initialize_solr_connections',
            'href' => $href,
            'iconIdentifier' => 'extensions-solr-module-initsolrconnections'
        ];
    }
public function manipulateCacheActions ( & $ cacheActions , & $ optionValues ) { if ( ! $ this -> backendUser -> isAdmin ( ) ) { return ; } $ href = $ this -> uriBuilder -> buildUriFromRoute ( 'ajax_solr_updateConnections' ) ; $ optionValues [ ] = 'clearSolrConnectionCache' ; $ cacheActions [ ] = [ 'id' => 'clearSolrConnectionCache' , 'title' => 'LLL:EXT:solr/Resources/Private/Language/locallang.xlf:cache_initialize_solr_connections' , 'href' => $ href , 'iconIdentifier' => 'extensions-solr-module-initsolrconnections' ] ; }
Adds a menu entry to the clear cache menu to detect Solr connections.

@param array $cacheActions Array of CacheMenuItems
@param array $optionValues Array of AccessConfigurations-identifiers (typically  used by userTS with options.clearCache.identifier)
Adds a menu entry to the clear cache menu to detect Solr connections .