You are here

public function MergeTermsConfirm::titleCallback in Term Merge 8

Callback for the form title.

Plugin annotation

@SuppressWarnings(camelCase);

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The title.

1 string reference to 'MergeTermsConfirm::titleCallback'
term_merge.routing.yml in ./term_merge.routing.yml
term_merge.routing.yml

File

src/Form/MergeTermsConfirm.php, line 170

Class

MergeTermsConfirm
Term merge confirm form.

Namespace

Drupal\term_merge\Form

Code

public function titleCallback() {
  $termCount = count($this
    ->getSelectedTermIds());
  $arguments = [
    '%termCount' => $termCount,
  ];
  return $this
    ->t("Are you sure you wish to merge %termCount terms?", $arguments);
}