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