This implementation describes a data definition container.

A data definition container is the top level container where all data definitions get stored.

 Methods

Retrieve a definition from the container (if it exists).

getDefinition(string $name) : \ContaoCommunityAlliance\DcGeneral\DataDefinition\ContainerInterface
If the definition does not exist, an exception is thrown.

Parameters

$name

string

The name of the definition to retrieve.

Returns

Check if a definition is contained in the container.

hasDefinition(string $name) : bool

Parameters

$name

string

The name of the definition to retrieve.

Returns

bool

Add or override a definition in the container.

setDefinition(string $name, \ContaoCommunityAlliance\DcGeneral\DataDefinition\ContainerInterface $definition) : \ContaoCommunityAlliance\DcGeneral\DataDefinitionContainerInterface

Parameters

$name

string

Name of the definition.

Returns