public function reverseTransform($value): ?Content
    {
        if (empty($value)) {
            return null;
        }

        if (!filter_var($value, FILTER_VALIDATE_INT)) {
            throw new TransformationFailedException('Expected a numeric string.');
        }

        try {
            return $this->contentService->loadContent($value);
        } catch (NotFoundException $e) {
            throw new TransformationFailedException($e->getMessage(), $e->getCode(), $e);
        }
    }
public function reverseTransform($value): ?Content
    {
        if (empty($value)) {
            return null;
        }

        if (!filter_var($value, FILTER_VALIDATE_INT)) {
            throw new TransformationFailedException('Expected a numeric string.');
        }

        try {
            return $this->contentService->loadContent($value);
        } catch (NotFoundException $e) {
            throw new TransformationFailedException($e->getMessage(), $e->getCode(), $e);
        }
    }
public function reverseTransform ( $ value ) : ? Content { if ( empty ( $ value ) ) { return null ; } if ( ! filter_var ( $ value , FILTER_VALIDATE_INT ) ) { throw new TransformationFailedException ( 'Expected a numeric string.' ) ; } try { return $ this -> contentService -> loadContent ( $ value ) ; } catch ( NotFoundException $ e ) { throw new TransformationFailedException ( $ e -> getMessage ( ) , $ e -> getCode ( ) , $ e ) ; } }
Transforms a Content's ID integer into a domain specific Content object.

@param string|null $value

@return \eZ\Publish\API\Repository\Values\Content\Content|null

@throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException
Transforms a Content s ID integer into a domain specific Content object .