function EntityFormInterface::setStringTranslation
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityFormInterface.php \Drupal\Core\Entity\EntityFormInterface::setStringTranslation()
- 8.9.x core/lib/Drupal/Core/Entity/EntityFormInterface.php \Drupal\Core\Entity\EntityFormInterface::setStringTranslation()
- 10 core/lib/Drupal/Core/Entity/EntityFormInterface.php \Drupal\Core\Entity\EntityFormInterface::setStringTranslation()
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\EntityCode
public function setStringTranslation(TranslationInterface $string_translation);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.