/**
  * Adds query tags and metadata to the EntityFieldQuery.
  *
  * @param \EntityFieldQuery $query
  *   The query to enhance.
  */
 protected function addExtraInfoToQuery($query)
 {
     parent::addExtraInfoToQuery($query);
     // The only time you need to add the access tags to a EFQ is when you don't
     // have fieldConditions.
     if (empty($query->fieldConditions) && empty($query->order)) {
         // Add a generic entity access tag to the query.
         $query->addTag($this->entityType . '_access');
     }
     $query->addMetaData('restful_data_provider', $this);
 }