You are here

protected function RestfulBase::getRequestForSubRequest in RESTful 7

Gets a request array with the data that should be piped to sub requests.

Return value

array The request array to be piped.

1 call to RestfulBase::getRequestForSubRequest()
RestfulEntityBase::getValueFromResource in plugins/restful/RestfulEntityBase.php
Get value from an entity reference field with "resource" property.

File

plugins/restful/RestfulBase.php, line 235
Contains RestfulBase.

Class

RestfulBase
Class \RestfulBase

Code

protected function getRequestForSubRequest() {
  $piped_request = array();
  foreach ($this
    ->getRequest() as $key => $value) {
    if (in_array($key, array(
      'filter',
      'page',
      'q',
      'range',
      'sort',
      'fields',
    ))) {
      continue;
    }
    $piped_request[$key] = $value;
  }
  return $piped_request;
}