Guides
Tutorials
Generates JSON-LD contexts.
class ApiPlatform\JsonLd\Action\ContextAction
{
public __construct(ApiPlatform\JsonLd\ContextBuilderInterface $contextBuilder, ApiPlatform\Metadata\Resource\Factory\ResourceNameCollectionFactoryInterface $resourceNameCollectionFactory, ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory)
public __invoke(string $shortName): array
}
class ApiPlatform\JsonLd\Action\ContextAction
{
public __construct(ApiPlatform\JsonLd\ContextBuilderInterface $contextBuilder, ApiPlatform\Metadata\Resource\Factory\ResourceNameCollectionFactoryInterface $resourceNameCollectionFactory, ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory)
public __invoke(string $shortName): array
}
public __construct(ApiPlatform\JsonLd\ContextBuilderInterface $contextBuilder, ApiPlatform\Metadata\Resource\Factory\ResourceNameCollectionFactoryInterface $resourceNameCollectionFactory, ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory)
public __construct(ApiPlatform\JsonLd\ContextBuilderInterface $contextBuilder, ApiPlatform\Metadata\Resource\Factory\ResourceNameCollectionFactoryInterface $resourceNameCollectionFactory, ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface $resourceMetadataCollectionFactory)
contextBuilder | ApiPlatform\JsonLd\ContextBuilderInterface | |
resourceNameCollectionFactory | ApiPlatform\Metadata\Resource\Factory\ResourceNameCollectionFactoryInterface | |
resourceMetadataCollectionFactory | ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface |
Generates a context according to the type requested.
public __invoke(string $shortName): array
public __invoke(string $shortName): array
shortName | string |
array