You are here

protected function DeleteTermsConfirm::getTermsName in Taxonomy Multi-delete Terms 8

1 call to DeleteTermsConfirm::getTermsName()
DeleteTermsConfirm::getDeletionMessage in src/Form/DeleteTermsConfirm.php

File

src/Form/DeleteTermsConfirm.php, line 115

Class

DeleteTermsConfirm
Defines a confirmation form for deleting term data.

Namespace

Drupal\taxonomy_multidelete_terms\Form

Code

protected function getTermsName() {
  $tids = $this
    ->getTermsId();
  $name = array();
  foreach ($tids as $tid) {
    $name[] = Term::load($tid)
      ->get('name')->value;
  }
  return $name;
}