You are here

public function LocaleProjectStorage::countProjects in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/locale/src/LocaleProjectStorage.php \Drupal\locale\LocaleProjectStorage::countProjects()
  2. 10 core/modules/locale/src/LocaleProjectStorage.php \Drupal\locale\LocaleProjectStorage::countProjects()

Returns the count of project records.

Return value

int The number of saved items.

Overrides LocaleProjectStorageInterface::countProjects

File

core/modules/locale/src/LocaleProjectStorage.php, line 154

Class

LocaleProjectStorage
Provides the locale project storage system using a key value store.

Namespace

Drupal\locale

Code

public function countProjects() {
  return count($this
    ->getAll());
}