Elgg\WidgetDefinition::__construct PHP Méthode

__construct() public méthode

WidgetDefinition constructor
public __construct ( string $id )
$id string Identifier of the widget
    public function __construct($id)
    {
        if (empty($id)) {
            throw new \InvalidParameterException('Id missing for WidgetDefinition');
        }
        $this->id = $id;
    }