You are here

public function DatabaseStorageSortedSet::getMinScore in Key-value Extensions 8

Return value

float

Overrides KeyValueStoreSortedSetInterface::getMinScore

File

src/KeyValueStore/DatabaseStorageSortedSet.php, line 61

Class

DatabaseStorageSortedSet

Namespace

Drupal\key_value\KeyValueStore

Code

public function getMinScore() {
  $query = $this->connection
    ->select($this->table);
  $query
    ->condition('collection', $this->collection, '=');
  $query
    ->addExpression('MIN(name)');
  return $query
    ->execute()
    ->fetchField();
}