You are here

public function RestfulEntityBaseNode::getQueryCount in RESTful 7

Overrides RestfulEntityBase::getQueryCount().

Expose only published nodes.

Overrides RestfulDataProviderEFQ::getQueryCount

File

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

Class

RestfulEntityBaseNode
A base implementation for "Node" entity type.

Code

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