skeeks\cms\helpers\ComponentHelper::hasBehaviorsOr PHP Méthode

hasBehaviorsOr() public static méthode

Проверка есть ли у компонента хоть одно повдеение
public static hasBehaviorsOr ( Component $component, array $behaviors = [] ) : boolean
$component yii\base\Component
$behaviors array
Résultat boolean
    public static function hasBehaviorsOr(Component $component, $behaviors = [])
    {
        foreach ($behaviors as $behavior) {
            if (static::hasBehavior($component, $behavior)) {
                return true;
            }
        }
        return false;
    }