Guides
Tutorials
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
}Transforms the value of a URI variable (identifier) to its type.
public transform($value, array $types, array $context): Symfony\Component\Uid\Ulidpublic transform($value, array $types, array $context): Symfony\Component\Uid\Ulid| value | ||
| types | array | |
| context | array |
Symfony\Component\Uid\Ulid
Checks whether the value of a URI variable can be transformed to its type by this transformer.
public supportsTransformation($value, array $types, array $context): boolpublic supportsTransformation($value, array $types, array $context): bool| value | ||
| types | array | |
| context | array |
bool