Example #1
0
 /**
  * Execute the resources transformer and return the data and included data.
  *
  * @internal
  *
  * @return array
  */
 protected function executeResourceTransformers()
 {
     $data = $this->resource->getData();
     if (null === $data || is_array($data)) {
         return [$data, []];
     }
     return parent::executeResourceTransformers();
 }