You are here

public function ConditionBase::specialT in GoogleTagManager 8

Returns a TranslatableMarkup object after placeholder substitution.

Parameters

string $string: The string to manipulate.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The markup object.

1 call to ConditionBase::specialT()
ConditionBase::buildConfigurationForm in src/ConditionBase.php
Form constructor.

File

src/ConditionBase.php, line 227

Class

ConditionBase
Provides a basis for fulfilling contexts for condition plugins.

Namespace

Drupal\google_tag

Code

public function specialT($string) {
  return $this
    ->t(strtr($string, [
    '@plural' => $this->plural,
  ]));
}