You are here

public function StringBase::setStorage in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/locale/src/StringBase.php \Drupal\locale\StringBase::setStorage()

Sets the string storage.

Parameters

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

Return value

$this

Overrides StringInterface::setStorage

File

core/modules/locale/src/StringBase.php, line 121

Class

StringBase
Defines the locale string base class.

Namespace

Drupal\locale

Code

public function setStorage($storage) {
  $this->storage = $storage;
  return $this;
}