/** * Overrides \RestfulEntityBaseNode::getQueryForList(). * * Expose only nodes that belong to the current user. */ public function getQueryForList() { $query = parent::getQueryForList(); $query->propertyCondition('uid', $this->getAccount()->uid); return $query; }