public function BlockPluginTrait::setTransliteration in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Block/BlockPluginTrait.php \Drupal\Core\Block\BlockPluginTrait::setTransliteration()
- 10 core/lib/Drupal/Core/Block/BlockPluginTrait.php \Drupal\Core\Block\BlockPluginTrait::setTransliteration()
Sets the transliteration service.
Parameters
\Drupal\Component\Transliteration\TransliterationInterface $transliteration: The transliteration service.
File
- core/
lib/ Drupal/ Core/ Block/ BlockPluginTrait.php, line 280
Class
- BlockPluginTrait
- Provides the base implementation of a block plugin.
Namespace
Drupal\Core\BlockCode
public function setTransliteration(TransliterationInterface $transliteration) {
$this->transliteration = $transliteration;
}