public static function AcquiaSearchSolrEnvironment::overriddenToReadOnly in Acquia Connector 7.3
Checks if environment is switched to read-only mode.
Parameters
array $environment: Search environment.
Return value
bool TRUE if environment is switched to read-only mode, otherwise - FALSE.
File
- acquia_search/
includes/ AcquiaSearchSolrEnvironment.php, line 108
Class
- AcquiaSearchSolrEnvironment
- Class AcquiaSearchSolrEnvironment.
Code
public static function overriddenToReadOnly(array $environment) {
if (FALSE === self::isConnected($environment)) {
return FALSE;
}
return isset($environment['overridden_by_acquia_search_solr']) && $environment['overridden_by_acquia_search_solr'] === self::READ_ONLY;
}