You are here

public static function ShsTermSelect::invalidateOptionsCache in Webform Simple Hierarchical Select 8

Invalidate options cache for provided vocabulary.

Parameters

string $vid: Vocabulary id.

2 calls to ShsTermSelect::invalidateOptionsCache()
webform_shs_taxonomy_term_delete in ./webform_shs.module
Implements hook_ENTITY_TYPE_delete().
webform_shs_taxonomy_term_presave in ./webform_shs.module
Implements hook_ENTITY_TYPE_presave().

File

src/Element/ShsTermSelect.php, line 204

Class

ShsTermSelect
Provides a webform element for an shs term select menu.

Namespace

Drupal\webform_shs\Element

Code

public static function invalidateOptionsCache($vid) {
  $cid = self::getOptionsCacheId($vid);
  \Drupal::cache()
    ->invalidate($cid);
}