detachBehavior() public method
Detaches a behavior from the component.
The behavior's yii\base\Behavior::detach() method will be invoked.
public null|yii\base\Behavior detachBehavior ( $name ) | ||
---|---|---|
$name | string |
The behavior's name. |
return | null|yii\base\Behavior |
The detached behavior. Null if the behavior does not exist. |
Please login to continue.