function StringInterface::setStorage

Same name in other branches
  1. 8.9.x core/modules/locale/src/StringInterface.php \Drupal\locale\StringInterface::setStorage()
  2. 10 core/modules/locale/src/StringInterface.php \Drupal\locale\StringInterface::setStorage()
  3. 11.x core/modules/locale/src/StringInterface.php \Drupal\locale\StringInterface::setStorage()

Sets the string storage.

Parameters

\Drupal\locale\StringStorageInterface $storage: The storage to use for this string.

Return value

$this

1 method overrides StringInterface::setStorage()
StringBase::setStorage in core/modules/locale/src/StringBase.php
Sets the string storage.

File

core/modules/locale/src/StringInterface.php, line 101

Class

StringInterface
Defines the locale string interface.

Namespace

Drupal\locale

Code

public function setStorage($storage);

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