private function MergeTermsConfirm::loadSelectedTerms in Term Merge 8
Loads the selected terms.
Return value
\Drupal\taxonomy\TermInterface[] The selected terms.
2 calls to MergeTermsConfirm::loadSelectedTerms()
- MergeTermsConfirm::getSelectedTermLabels in src/
Form/ MergeTermsConfirm.php - Gets a list of selected term labels from the temp store.
- MergeTermsConfirm::submitForm in src/
Form/ MergeTermsConfirm.php - Plugin annotation @SuppressWarnings(camelCase);
File
- src/
Form/ MergeTermsConfirm.php, line 215
Class
- MergeTermsConfirm
- Term merge confirm form.
Namespace
Drupal\term_merge\FormCode
private function loadSelectedTerms() {
$termStorage = $this->entityTypeManager
->getStorage('taxonomy_term');
/** @var \Drupal\taxonomy\TermInterface[] $selectedTerms */
$selectedTerms = $termStorage
->loadMultiple($this
->getSelectedTermIds());
return $selectedTerms;
}