VocabularyStorageInterface.php 543 Bytes
Newer Older
1 2 3 4
<?php

/**
 * @file
5
 * Contains \Drupal\taxonomy\VocabularyStorageInterface.
6 7 8 9
 */

namespace Drupal\taxonomy;

10
use Drupal\Core\Config\Entity\ConfigEntityStorageInterface;
11 12

/**
13
 * Defines an interface for vocabulary entity storage classes.
14
 */
15
interface VocabularyStorageInterface extends ConfigEntityStorageInterface {
16 17 18 19 20 21 22 23 24 25 26 27 28

  /**
   * Gets top-level term IDs of vocabularies.
   *
   * @param array $vids
   *   Array of vocabulary IDs.
   *
   * @return array
   *   Array of top-level term IDs.
   */
  public function getToplevelTids($vids);

}