public function RestfulBase::isListRequest in RESTful 7
Helper method to know if the current request is for a list.
Return value
boolean TRUE if the request is for a list. FALSE otherwise.
1 call to RestfulBase::isListRequest()
- RestfulBase::parseRequestForListFilter in plugins/
restful/ RestfulBase.php  - Filter the query for list.
 
File
- plugins/
restful/ RestfulBase.php, line 888  - Contains RestfulBase.
 
Class
- RestfulBase
 - Class \RestfulBase
 
Code
public function isListRequest() {
  if ($this
    ->getMethod() != \RestfulInterface::GET) {
    return FALSE;
  }
  $path = $this
    ->getPath();
  return empty($path) || strpos($path, ',') !== FALSE;
}