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