src/Serializer/JsonApiSerializer.php
private function createIncludeObjects($includeObject)
    {
        if ($this->isCollection($includeObject)) {
            $includeObjects = $includeObject['data'];

            return $includeObjects;
        } else {
            $includeObjects = [$includeObject['data']];

            return $includeObjects;
        }
    }
private function createIncludeObjects($includeObject)
    {
        if ($this->isCollection($includeObject)) {
            $includeObjects = $includeObject['data'];

            return $includeObjects;
        } else {
            $includeObjects = [$includeObject['data']];

            return $includeObjects;
        }
    }
private function createIncludeObjects ( $ includeObject ) { if ( $ this -> isCollection ( $ includeObject ) ) { $ includeObjects = $ includeObject [ 'data' ] ; return $ includeObjects ; } else { $ includeObjects = [ $ includeObject [ 'data' ] ] ; return $ includeObjects ; } }
Check if the objects are part of a collection or not

@param $includeObject

@return array
Check if the objects are part of a collection or not