Reference
C
Class

ApiPlatform\Symfony\UriVariableTransformer\UlidUriVariableTransformer

Transforms an ULID string to an instance of Symfony\Component\Uid\Ulid.

class ApiPlatform\Symfony\UriVariableTransformer\UlidUriVariableTransformer implements `<a href="/docs/reference/Api/UriVariableTransformerInterface">ApiPlatform\Api\UriVariableTransformerInterface</a>`
{
    public transform($value, array $types, array $context): Symfony\Component\Uid\Ulid
    public supportsTransformation($value, array $types, array $context): bool
}
class ApiPlatform\Symfony\UriVariableTransformer\UlidUriVariableTransformer implements `<a href="/docs/reference/Api/UriVariableTransformerInterface">ApiPlatform\Api\UriVariableTransformerInterface</a>`
{
    public transform($value, array $types, array $context): Symfony\Component\Uid\Ulid
    public supportsTransformation($value, array $types, array $context): bool
}

Methods

transform

Transforms the value of a URI variable (identifier) to its type.

public transform($value, array $types, array $context): Symfony\Component\Uid\Ulid
public transform($value, array $types, array $context): Symfony\Component\Uid\Ulid

Parameters

value
typesarray
contextarray

Returns

Symfony\Component\Uid\Ulid

supportsTransformation

Checks whether the value of a URI variable can be transformed to its type by this transformer.

public supportsTransformation($value, array $types, array $context): bool
public supportsTransformation($value, array $types, array $context): bool

Parameters

value
typesarray
contextarray

Returns

bool

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop