You are here

public function TestSession::remove in Rules 8.3

File

tests/src/Unit/TestSession.php, line 101

Class

TestSession
Implements just the methods we need for the Rules unit tests.

Namespace

Drupal\Tests\rules\Unit

Code

public function remove($key) {
  if (isset($this->logs[$key])) {
    $return = $this->logs[$key];
    unset($this->logs[$key]);
    return $return;
  }
  else {
    return NULL;
  }
}