public function Variable::count in Drupal 8
Same name and namespace in other branches
- 9 core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php \Drupal\migrate_drupal\Plugin\migrate\source\Variable::count()
Gets the source count.
Return a count of available source records, from the cache if appropriate. Returns -1 if the source is not countable.
Parameters
bool $refresh: (optional) Whether or not to refresh the count. Defaults to FALSE. Not all implementations support the reset flag. In such instances this parameter is ignored and the result of calling the method will always be up to date.
Return value
int The count.
Overrides SqlBase::count
1 method overrides Variable::count()
- SearchPage::count in core/
modules/ search/ src/ Plugin/ migrate/ source/ d7/ SearchPage.php - Gets the source count.
File
- core/
modules/ migrate_drupal/ src/ Plugin/ migrate/ source/ Variable.php, line 62
Class
- Variable
- Drupal variable source from database.
Namespace
Drupal\migrate_drupal\Plugin\migrate\sourceCode
public function count($refresh = FALSE) {
// Variable always returns a single row with at minimum an 'id' property.
return 1;
}