public function getPayloadForDataIdentifier($dataIdentifier)
    {
        if ($dataIdentifier === null) {
            return null;
        }
        $resourceConverter = new ResourceConverter();
        /** @var Schema\Resource $resource */
        $resource = $resourceConverter->convertFrom($dataIdentifier, Schema\Resource::class);

        return $resource->getPayload();
    }
public function getPayloadForDataIdentifier($dataIdentifier)
    {
        if ($dataIdentifier === null) {
            return null;
        }
        $resourceConverter = new ResourceConverter();
        /** @var Schema\Resource $resource */
        $resource = $resourceConverter->convertFrom($dataIdentifier, Schema\Resource::class);

        return $resource->getPayload();
    }
public function getPayloadForDataIdentifier ( $ dataIdentifier ) { if ( $ dataIdentifier === null ) { return null ; } $ resourceConverter = new ResourceConverter ( ) ; /** @var Schema\Resource $resource */ $ resource = $ resourceConverter -> convertFrom ( $ dataIdentifier , Schema \ Resource :: class ) ; return $ resource -> getPayload ( ) ; }
If a proper data identifier structure is given, the corresponding
payload is returned.

@param mixed $dataIdentifier
@return mixed
@see http://jsonapi.org/format/#document-resource-identifier-objects
If a proper data identifier structure is given the corresponding payload is returned .