You are here

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

Return value

integer

Overrides DatabaseStorageSortedBase::getCount

File

src/KeyValueStore/DatabaseStorageSortedSet.php, line 46

Class

DatabaseStorageSortedSet

Namespace

Drupal\key_value\KeyValueStore

Code

public function getCount() {
  return $this->connection
    ->select($this->table, 't')
    ->condition('collection', $this->collection)
    ->countQuery()
    ->execute()
    ->fetchField();
}