TripalVocab.inc 408 B

12345678910111213141516171819
  1. <?php
  2. /**
  3. * A class the controller will use for instantiating the TripalTerm entity.
  4. */
  5. class TripalVocab extends Entity {
  6. public function __construct($values = array(), $entity_type) {
  7. parent::__construct($values, $entity_type);
  8. }
  9. protected function defaultLabel() {
  10. return $this->name;
  11. }
  12. protected function defaultUri() {
  13. return array('path' => 'vocabulary/' . $this->id);
  14. }
  15. }