Elgg\WidgetDefinition::__construct PHP Метод

__construct() публичный Метод

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;
    }