You are here

public function VariableRealmDefaultController::getCurrentStore in Variable 7.2

Implementation of VariableRealmControllerInterface::getCurrentStore().

Overrides VariableRealmControllerInterface::getCurrentStore

1 call to VariableRealmDefaultController::getCurrentStore()
VariableRealmDefaultController::getCurrentVariables in variable_realm/variable_realm.class.inc
Implementation of VariableRealmControllerInterface::getCurrentVariables().

File

variable_realm/variable_realm.class.inc, line 364
Variable realm controller

Class

VariableRealmDefaultController
Base class, keeps static list of variables.

Code

public function getCurrentStore() {
  if ($this
    ->isActive()) {
    return $this
      ->getStore($this
      ->getKey());
  }
  else {
    return NULL;
  }
}