8.5.x EntityFormInterface.php EntityFormInterface::setStringTranslation(TranslationInterface $string_translation)
8.0.x EntityFormInterface.php EntityFormInterface::setStringTranslation(TranslationInterface $string_translation)
8.1.x EntityFormInterface.php EntityFormInterface::setStringTranslation(TranslationInterface $string_translation)
8.2.x EntityFormInterface.php EntityFormInterface::setStringTranslation(TranslationInterface $string_translation)
8.3.x EntityFormInterface.php EntityFormInterface::setStringTranslation(TranslationInterface $string_translation)
8.4.x EntityFormInterface.php EntityFormInterface::setStringTranslation(TranslationInterface $string_translation)
8.6.x EntityFormInterface.php EntityFormInterface::setStringTranslation(TranslationInterface $string_translation)

Sets the string translation service for this form.

Parameters

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The translation manager.

Return value

$this

File

core/lib/Drupal/Core/Entity/EntityFormInterface.php, line 116

Class

EntityFormInterface
Defines an interface for entity form classes.

Namespace

Drupal\Core\Entity

Code

public function setStringTranslation(TranslationInterface $string_translation);