You are here

public static function Storage::isReadOnly in Acquia Search 3.x

Determine if the read-only mode is enabled.

Return value

bool TRUE if the read-only mode forced by the site configuration.

2 calls to Storage::isReadOnly()
Runtime::shouldEnforceReadOnlyMode in src/Helper/Runtime.php
Determine if we should enforce read-only mode.
StorageTest::testStorage in tests/src/Unit/Helper/StorageTest.php
Tests storage.

File

src/Helper/Storage.php, line 108

Class

Storage
Class Storage.

Namespace

Drupal\acquia_search\Helper

Code

public static function isReadOnly() : bool {
  return !empty(\Drupal::config('acquia_search.settings')
    ->get('read_only'));
}