PHP Class Sulu\Component\Content\Metadata\BlockMetadata

TODO: Components are basically Snippets, but Snippets are loaded as Structures
Inheritance: extends PropertyMetadata
Afficher le fichier Open project: sulu/sulu Class Usage Examples

Méthodes publiques

Свойство Type Description
$components ComponentMetadata[]
$defaultComponentName string

Méthodes publiques

Méthode Description
addComponent ( ComponentMetadata $component ) Add a new component.
getComponentByName ( $name ) : ComponentMetadata
getComponents ( ) : ComponentMetadata[] Return the components.
getDefaultComponentName ( ) : string Return the default component name.

Method Details

addComponent() public méthode

Add a new component.
public addComponent ( ComponentMetadata $component )
$component ComponentMetadata

getComponentByName() public méthode

public getComponentByName ( $name ) : ComponentMetadata
$name
Résultat ComponentMetadata

getComponents() public méthode

Return the components.
public getComponents ( ) : ComponentMetadata[]
Résultat ComponentMetadata[]

getDefaultComponentName() public méthode

Return the default component name.
public getDefaultComponentName ( ) : string
Résultat string

Property Details

$components public_oe property

public ComponentMetadata[] $components
Résultat ComponentMetadata[]

$defaultComponentName public_oe property

public string $defaultComponentName
Résultat string