Method | Description | |
---|---|---|
addAttribute ( string $name, mixed $value ) | Adds an attribute using "dot" notation if doesn't exists. | |
getAttribute ( string $name ) : mixed | Get a value using "dot" notation. | |
getAttributes ( ) : array | Gets the site attributes. | |
hasAttribute ( string $name ) : boolean | Check if an attribute exists in using "dot" notation. | |
initialize ( array $attributes = [] ) | Initializes the site attributes structure. | |
setAttribute ( string $name, mixed $value ) | Set an attribute using "dot" notation. | |
setItem ( Yosymfony\Spress\Core\DataSource\ItemInterface $item ) | Called in some phase of Spress's lifecycle: - invoqued to all items just before first spress.before_render_block event. |
public addAttribute ( string $name, mixed $value ) | ||
$name | string | The name of the attribute |
$value | mixed | The value of the attribute |
public getAttribute ( string $name ) : mixed | ||
$name | string | |
return | mixed |
public getAttributes ( ) : array | ||
return | array | The attributes |
public hasAttribute ( string $name ) : boolean | ||
$name | string | The name of the attribute |
return | boolean |
public initialize ( array $attributes = [] ) | ||
$attributes | array | Initial attributes |
public setAttribute ( string $name, mixed $value ) | ||
$name | string | The name of the attribute |
$value | mixed | The value of the attribute |
public setItem ( Yosymfony\Spress\Core\DataSource\ItemInterface $item ) | ||
$item | Yosymfony\Spress\Core\DataSource\ItemInterface |