You are here

protected static function CshsElement::getTermStorage in Client-side Hierarchical Select 8.3

Same name and namespace in other branches
  1. 8 src/Element/CshsElement.php \Drupal\cshs\Element\CshsElement::getTermStorage()
  2. 8.2 src/Element/CshsElement.php \Drupal\cshs\Element\CshsElement::getTermStorage()

Returns the "taxonomy_term" entities storage.

Return value

\Drupal\taxonomy\TermStorageInterface The storage.

1 call to CshsElement::getTermStorage()
CshsElement::validateElement in src/Element/CshsElement.php

File

src/Element/CshsElement.php, line 159

Class

CshsElement
Defines the CSHS element.

Namespace

Drupal\cshs\Element

Code

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