private static function Terms::getTermName in Hook Update Deploy Tools 7
Gets the Term 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 Term Name.
1 call to Terms::getTermName()
- Terms::import in src/
Terms.php - Perform the unique steps necessary to import terms items from export files.
File
- src/
Terms.php, line 205
Class
- Terms
- Public methods for dealing with Vocabularies.
Namespace
HookUpdateDeployToolsCode
private static function getTermName($vocabulary_term_name) {
$parts = explode('|', $vocabulary_term_name);
$term_name = !empty($parts[1]) ? $parts[1] : '';
Check::notEmpty('$term_name', $term_name);
return $term_name;
}