You are here

protected static function TaxonomyManagerTree::getTermStorage in Taxonomy Manager 8

Same name and namespace in other branches
  1. 2.0.x src/Element/TaxonomyManagerTree.php \Drupal\taxonomy_manager\Element\TaxonomyManagerTree::getTermStorage()

Function to get term storage.

Return value

\Drupal\taxonomy\TermStorageInterface The term storage.

File

src/Element/TaxonomyManagerTree.php, line 295

Class

TaxonomyManagerTree
Taxonomy Manager Tree Form Element.

Namespace

Drupal\taxonomy_manager\Element

Code

protected static function getTermStorage() {
  return \Drupal::entityTypeManager()
    ->getStorage('taxonomy_term');
}