public function getIndexName()
    {
        $name = $this->sanitiseClassName(get_class($this), '-');

        $indexParts = [$name];

        if ($indexPrefix = Environment::getEnv('SS_SOLR_INDEX_PREFIX')) {
            array_unshift($indexParts, $indexPrefix);
        }

        if ($indexSuffix = Environment::getEnv('SS_SOLR_INDEX_SUFFIX')) {
            $indexParts[] = $indexSuffix;
        }

        return implode($indexParts);
    }
public function getIndexName()
    {
        $name = $this->sanitiseClassName(get_class($this), '-');

        $indexParts = [$name];

        if ($indexPrefix = Environment::getEnv('SS_SOLR_INDEX_PREFIX')) {
            array_unshift($indexParts, $indexPrefix);
        }

        if ($indexSuffix = Environment::getEnv('SS_SOLR_INDEX_SUFFIX')) {
            $indexParts[] = $indexSuffix;
        }

        return implode($indexParts);
    }
public function getIndexName ( ) { $ name = $ this -> sanitiseClassName ( get_class ( $ this ) , '-' ) ; $ indexParts = [ $ name ] ; if ( $ indexPrefix = Environment :: getEnv ( 'SS_SOLR_INDEX_PREFIX' ) ) { array_unshift ( $ indexParts , $ indexPrefix ) ; } if ( $ indexSuffix = Environment :: getEnv ( 'SS_SOLR_INDEX_SUFFIX' ) ) { $ indexParts [ ] = $ indexSuffix ; } return implode ( $ indexParts ) ; }
Helper for returning the correct index name. Supports prefixing and
suffixing

@return string
Helper for returning the correct index name . Supports prefixing and suffixing