You are here

TranslationWrapper.php in Drupal 9

Same filename and directory in other branches
  1. 8 core/lib/Drupal/Core/StringTranslation/TranslationWrapper.php

File

core/lib/Drupal/Core/StringTranslation/TranslationWrapper.php
View source
<?php

namespace Drupal\Core\StringTranslation;


/**
 * Provides translatable string class.
 *
 * @deprecated in drupal:8.0.0 and is removed from drupal:10.0.0.
 *   Use the \Drupal\Core\StringTranslation\TranslatableMarkup class instead.
 *
 * @see https://www.drupal.org/node/2571255
 */
class TranslationWrapper extends TranslatableMarkup {

  /**
   * {@inheritdoc}
   */
  public function __construct($string, array $arguments = [], array $options = [], TranslationInterface $string_translation = NULL) {
    @trigger_error(__CLASS__ . ' is deprecated in drupal:8.0.0 and is removed from drupal:10.0.0. Use the \\Drupal\\Core\\StringTranslation\\TranslatableMarkup class instead. See https://www.drupal.org/node/2571255', E_USER_DEPRECATED);
    parent::__construct($string, $arguments, $options, $string_translation);
  }

}

Classes

Namesort descending Description
TranslationWrapper Deprecated Provides translatable string class.