Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. StringInterface.php

function StringInterface::setString

Sets the string contained in this object.

Parameters

string $string: String to set as value.

Return value

$this

1 call to StringInterface::setString()
StringBase::setPlurals in core/modules/locale/src/StringBase.php
Sets this string using array of plural values.
2 methods override StringInterface::setString()
SourceString::setString in core/modules/locale/src/SourceString.php
Sets the string contained in this object.
TranslationString::setString in core/modules/locale/src/TranslationString.php
Sets the string contained in this object.

File

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

Class

StringInterface
Defines the locale string interface.

Namespace

Drupal\locale

Code

public function setString($string);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal