public function EntityFormInterface::setStringTranslation in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 121 - Contains \Drupal\Core\Entity\EntityFormInterface.
Class
- EntityFormInterface
- Defines an interface for entity form classes.
Namespace
Drupal\Core\EntityCode
public function setStringTranslation(TranslationInterface $string_translation);