Свойство | Type | Description | |
---|---|---|---|
$context | In which contexts is the widget available | ||
$description | Description of the widget | ||
$id | Identifier of the widget | ||
$multiple | Can the widget be added multiple times | ||
$name | Readable name of the widget |
Méthode | Description | |
---|---|---|
__construct ( string $id ) | WidgetDefinition constructor | |
__get ( string $name ) : mixed | Magic getter to return the deprecated attribute 'handler' | |
factory ( array $options ) : |
Create an WidgetDefinition from an associative array. Required key is id. |
public __construct ( string $id ) | ||
$id | string | Identifier of the widget |
public static factory ( array $options ) : |
||
$options | array | Option array of key value pairs id => STR Widget identifier (required) name => STR Name of the widget description => STR Description of the widget context => ARRAY contexts in which the widget is available multiple => BOOL can the widget be added multiple times |
Résultat |