You are here

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

2 calls to DeleteTermsConfirm::getTermsId()
DeleteTermsConfirm::buildForm in src/Form/DeleteTermsConfirm.php
Form constructor.
DeleteTermsConfirm::getTermsName in src/Form/DeleteTermsConfirm.php

File

src/Form/DeleteTermsConfirm.php, line 127

Class

DeleteTermsConfirm
Defines a confirmation form for deleting term data.

Namespace

Drupal\taxonomy_multidelete_terms\Form

Code

protected function getTermsId() {
  $terms_data = $this->tempStore
    ->get('deletedterms');
  $tids = array();
  foreach ($terms_data as $value) {
    if (!empty($value['term']['check-delete'])) {
      $tids[] = $value['term']['tid'];
    }
  }
  return $tids;
}