/** * @inheritdoc */ public function behaviors() { return [['class' => NestedSetsBehavior::className(), 'treeAttribute' => 'tree']]; }
/** * @inheritdoc */ public function behaviors() { $module = TreeView::module(); $settings = ['class' => NestedSetsBehavior::className()] + $module->treeStructure; return empty($module->treeBehaviorName) ? [$settings] : [$module->treeBehaviorName => $settings]; }
/** * @inheritdoc */ public function behaviors() { return [NestedSetsBehavior::className()]; }