public function behaviors() { return ['cacheflush' => ['class' => CacheFlush::className(), 'key' => [static::tableName() . '_tree', static::tableName() . '_flat']], 'seoBehavior' => SeoBehavior::className(), 'sluggable' => ['class' => SluggableBehavior::className(), 'attribute' => 'title', 'ensureUnique' => true], 'tree' => ['class' => NestedSetsBehavior::className(), 'treeAttribute' => 'tree']]; }
public function behaviors() { return [CacheFlush::className(), SortableModel::className()]; }
public function behaviors() { return array_merge_recursive(parent::behaviors(), [CacheFlush::className(), SortableModel::className()]); }
public function behaviors() { return [CacheFlush::className()]; }
public function behaviors() { return ['tree' => ['class' => NestedSetsBehavior::className(), 'treeAttribute' => 'tree'], ['class' => CacheFlush::className(), 'key' => [['yii\\widgets\\FragmentCache', 'menu_item']]]]; }
public function behaviors() { return [CacheFlush::className(), SortableModel::className(), 'mlBehavior' => ['class' => MultiLanguageBehavior::className(), 'mlConfig' => ['db_table' => 'translations_with_string', 'attributes' => ['title', 'short', 'text'], 'admin_routes' => ['admin/*']]]]; }