lib/components/web/widgets/BaseWidget.php
public function attachDecorator($decorator)
    {
        if ($this->hasDecorator()) {
            $this->detachBehavior('__decorator');
        }

        return $this->_decorator = $this->attachBehavior('__decorator', ['class' => $decorator]);
    }
public function attachDecorator($decorator)
    {
        if ($this->hasDecorator()) {
            $this->detachBehavior('__decorator');
        }

        return $this->_decorator = $this->attachBehavior('__decorator', ['class' => $decorator]);
    }
[[@doctodo method_description:attachDecorator]].

@param [[@doctodo param_type:decorator]] $decorator [[@doctodo param_description:decorator]]

@return [[@doctodo return_type:attachDecorator]] [[@doctodo return_description:attachDecorator]]