function ForumUninstallValidator::setStringTranslation

Same name and namespace in other branches
  1. 9 core/modules/forum/src/ProxyClass/ForumUninstallValidator.php \Drupal\forum\ProxyClass\ForumUninstallValidator::setStringTranslation()
  2. 8.9.x core/modules/forum/src/ProxyClass/ForumUninstallValidator.php \Drupal\forum\ProxyClass\ForumUninstallValidator::setStringTranslation()
  3. 10 core/modules/forum/src/ProxyClass/ForumUninstallValidator.php \Drupal\forum\ProxyClass\ForumUninstallValidator::setStringTranslation()

File

core/modules/forum/src/ProxyClass/ForumUninstallValidator.php, line 81

Class

ForumUninstallValidator
Provides a proxy class for <a href="/api/drupal/core%21modules%21forum%21src%21ForumUninstallValidator.php/class/ForumUninstallValidator/11.x" title="Prevents forum module from being uninstalled under certain conditions." class="local">\Drupal\forum\ForumUninstallValidator</a>.

Namespace

Drupal\forum\ProxyClass

Code

public function setStringTranslation(\Drupal\Core\StringTranslation\TranslationInterface $translation) {
    return $this->lazyLoadItself()
        ->setStringTranslation($translation);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.