You are here

public function RestfulEntityBaseNode::getQueryForList in RESTful 7

Overrides RestfulEntityBase::getQueryForList().

Expose only published nodes.

Overrides RestfulDataProviderEFQ::getQueryForList

File

plugins/restful/RestfulEntityBaseNode.php, line 19
Contains RestfulEntityBaseNode.

Class

RestfulEntityBaseNode
A base implementation for "Node" entity type.

Code

public function getQueryForList() {
  $query = parent::getQueryForList();
  $query
    ->propertyCondition('status', NODE_PUBLISHED);
  return $query;
}