function StatementEmpty::rowCount

Same name in other branches
  1. 9 core/lib/Drupal/Core/Database/StatementEmpty.php \Drupal\Core\Database\StatementEmpty::rowCount()

Overrides StatementInterface::rowCount

File

core/lib/Drupal/Core/Database/StatementEmpty.php, line 42

Class

StatementEmpty
Empty implementation of a database statement.

Namespace

Drupal\Core\Database

Code

public function rowCount() {
    if ($this->allowRowCount) {
        return 0;
    }
    throw new RowCountException();
}

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