class UnserializableTranslationManager in Drupal 10
Test class.
Hierarchy
- class \Drupal\Core\StringTranslation\TranslationManager implements TranslationInterface, TranslatorInterface
- class \Drupal\Tests\Core\Entity\UnserializableTranslationManager
Expanded class hierarchy of UnserializableTranslationManager
File
- core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityTypeTest.php, line 524
Namespace
Drupal\Tests\Core\EntityView source
class UnserializableTranslationManager extends TranslationManager {
/**
* Constructs a UnserializableTranslationManager object.
*/
public function __construct() {
}
/**
* @return array
*/
public function __serialize() : array {
throw new \Exception();
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TranslationManager:: |
protected | property | The default langcode used in translations. | |
TranslationManager:: |
protected | property | An array of translators, sorted by priority. | |
TranslationManager:: |
protected | property | An unsorted array of arrays of active translators. | |
TranslationManager:: |
public | function | Appends a translation system to the translation chain. | |
TranslationManager:: |
protected | function | Translates a string to the current language or to a given language. | |
TranslationManager:: |
public | function |
Formats a string containing a count of items. Overrides TranslationInterface:: |
|
TranslationManager:: |
public | function |
Retrieves English string to given language. Overrides TranslatorInterface:: |
|
TranslationManager:: |
public | function |
Resets translation cache. Overrides TranslatorInterface:: |
|
TranslationManager:: |
public | function | Sets the default langcode. | |
TranslationManager:: |
protected | function | Sorts translators according to priority. | |
TranslationManager:: |
public | function |
Translates a string to the current language or to a given language. Overrides TranslationInterface:: |
|
TranslationManager:: |
public | function |
Translates a TranslatableMarkup object to a string. Overrides TranslationInterface:: |
|
UnserializableTranslationManager:: |
public | function |
Constructs a UnserializableTranslationManager object. Overrides TranslationManager:: |
|
UnserializableTranslationManager:: |
public | function |