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