You are here

public function QueryPluginBase::setLimit in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/query/QueryPluginBase.php \Drupal\views\Plugin\views\query\QueryPluginBase::setLimit()

Set a LIMIT on the query, specifying a maximum number of results.

File

core/modules/views/src/Plugin/views/query/QueryPluginBase.php, line 134

Class

QueryPluginBase
Base plugin class for Views queries.

Namespace

Drupal\views\Plugin\views\query

Code

public function setLimit($limit) {
  $this->limit = $limit;
}