You are here

private static function Terms::getVocabularyName in Hook Update Deploy Tools 7

Gets the Vocabulary Name from the $vocabulary_term_names. Strict.

Parameters

string $vocabulary_term_name: A string made up of "Vocabulary Name|Term Name" (not machine names).

Return value

string The Vocabulary Name.

1 call to Terms::getVocabularyName()
Terms::import in src/Terms.php
Perform the unique steps necessary to import terms items from export files.

File

src/Terms.php, line 221

Class

Terms
Public methods for dealing with Vocabularies.

Namespace

HookUpdateDeployTools

Code

private static function getVocabularyName($vocabulary_term_name) {
  $parts = explode('|', $vocabulary_term_name);
  $vocabulary_name = !empty($parts[0]) ? $parts[0] : '';
  Check::notEmpty('$vocabulary_name', $vocabulary_name);
  return $vocabulary_name;
}