/** * Get **limit** command of current request. * * @return array */ public function getLimit() { $limit = $this->request->get('!limit'); if (is_null($limit) && !is_null($this->collection->option('limit'))) { $limit = $this->collection->option('limit'); } return $limit; }