private function MergeTermsConfirm::getSelectedTermLabels in Term Merge 8
Gets a list of selected term labels from the temp store.
Return value
\Drupal\taxonomy\TermInterface[] The labels of the selected terms.
1 call to MergeTermsConfirm::getSelectedTermLabels()
- MergeTermsConfirm::buildForm in src/
Form/ MergeTermsConfirm.php - Plugin annotation @SuppressWarnings(camelCase) @SuppressWarnings("else")
File
- src/
Form/ MergeTermsConfirm.php, line 198
Class
- MergeTermsConfirm
- Term merge confirm form.
Namespace
Drupal\term_merge\FormCode
private function getSelectedTermLabels() {
$selectedTerms = $this
->loadSelectedTerms();
$items = [];
foreach ($selectedTerms as $term) {
$items[] = $term
->label();
}
return $items;
}