Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function query()
 {
     // If we're not using Field API field rendering, just use the query()
     // implementation of the fallback handler.
     if (!$this->options['field_rendering']) {
         $this->fallbackHandler->query();
         return;
     }
     // If we do use Field API rendering, we need the entity object for the
     // parent property.
     $parent_path = $this->getParentPath();
     $property_path = $parent_path ? "{$parent_path}:_object" : '_object';
     $combined_property_path = Utility::createCombinedId($this->getDatasourceId(), $property_path);
     $this->addRetrievedProperty($combined_property_path);
 }