function LinearHistory::getActiveCheckpoint

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Config/Checkpoint/LinearHistory.php \Drupal\Core\Config\Checkpoint\LinearHistory::getActiveCheckpoint()

Gets the active checkpoint.

Return value

\Drupal\Core\Config\Checkpoint\Checkpoint|null The active checkpoint or NULL if there are no checkpoints.

Overrides CheckpointListInterface::getActiveCheckpoint

File

core/lib/Drupal/Core/Config/Checkpoint/LinearHistory.php, line 58

Class

LinearHistory
A chronological list of Checkpoint objects.

Namespace

Drupal\Core\Config\Checkpoint

Code

public function getActiveCheckpoint() : ?Checkpoint {
  return $this->activeCheckpoint;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.