You are here

class SolrVersionRealm in Apache Solr Config Generator 7

Controller for solr version realms.

Hierarchy

Expanded class hierarchy of SolrVersionRealm

1 string reference to 'SolrVersionRealm'
apachesolr_confgen_variable_realm_info in ./apachesolr_confgen.module
Implements hook_variable_realm_info().

File

./apachesolr_confgen.class.inc, line 10
Variable Realm controller.

View source
class SolrVersionRealm extends VariableRealmDefaultController {

  /**
   * Implementation of VariableRealmControllerInterface::getAvailableVariables().
   */
  public function getAvailableVariables() {
    $version_dependent = array();
    $conf = variable_get('apachesolr_confgen_solr_version_dependent_variables', array());
    foreach (variable_get_info() as $name => $variable) {
      if (!empty($variable['solr_version_dependent']) || in_array($name, $conf)) {
        $version_dependent[] = $name;
      }
    }
    return $version_dependent;
  }

}

Members