You are here

function _acquia_purge_get in Acquia Purge 7

DEPRECATED: Retrieve a variable or state data property.

File

./acquia_purge.deprecated.inc, line 78
Deprecated functions.

Code

function _acquia_purge_get($name, $get_default = FALSE) {
  _acquia_purge_deprecated('_acquia_purge_variable()');
  try {
    return _acquia_purge_variable($name);
  } catch (Exception $e) {
    return _acquia_purge_service()
      ->state()
      ->get($name)
      ->get();
  }
}