/**
  * Initializes and validates the tree view configurations
  *
  * @throws InvalidConfigException
  */
 protected function initTreeView()
 {
     $this->validateSourceData();
     $this->_module = Config::initModule(Module::className());
     $this->initSelectedNode();
     if (empty($this->emptyNodeMsg)) {
         $this->emptyNodeMsg = Yii::t('kvtree', 'No valid tree nodes are available for display. Use toolbar buttons to add tree nodes.');
     }
     $this->_hasBootstrap = $this->showTooltips;
     $this->breadcrumbs += ['depth' => null, 'glue' => ' » ', 'activeCss' => 'kv-crumb-active', 'untitled' => Yii::t('kvtree', 'Untitled')];
 }
 /**
  * @inherit doc
  */
 public function init()
 {
     $this->validateSourceData();
     $this->_module = Config::initModule(Module::classname());
     $this->initSelectedNode();
     if (empty($this->emptyNodeMsg)) {
         $this->emptyNodeMsg = Yii::t('kvtree', 'No valid tree nodes are available for display. Use toolbar buttons to add tree nodes.');
     }
     parent::init();
 }