/**
  * Returns the Source of the Tree
  *
  * @return object The tree data source object
  */
 public function getTreeSource()
 {
     $source = $this->dataManager->get($this->getTreeSourceType());
     $source->setHierarchyDriver($this);
     return $source;
 }
Exemple #2
0
 /**
  * Test expected interface.
  *
  * @return void
  *
  * @expectedException        Zend\ServiceManager\Exception\RuntimeException
  * @expectedExceptionMessage Plugin ArrayObject does not belong to VuFind\Hierarchy\TreeDataSource\AbstractBase
  */
 public function testExpectedInterface()
 {
     $pm = new PluginManager(null);
     $pm->validatePlugin(new \ArrayObject());
 }