yii\base\Component::getBehavior PHP 메소드

getBehavior() 공개 메소드

Returns the named behavior object.
public getBehavior ( string $name ) : null | Behavior
$name string the behavior name
리턴 null | Behavior the behavior object, or null if the behavior does not exist
    public function getBehavior($name)
    {
        $this->ensureBehaviors();
        return isset($this->_behaviors[$name]) ? $this->_behaviors[$name] : null;
    }