public function StringInterface::setValues

Sets an array of values as object properties.

Parameters

array $values: Array with values indexed by property name,

bool $override: (optional) Whether to override already set fields, defaults to TRUE.

Return value

Drupal\locale\LocaleString The called object.

1 method overrides StringInterface::setValues()
StringBase::setValues in drupal/core/modules/locale/lib/Drupal/locale/StringBase.php
Implements Drupal\locale\StringInterface::setValues().

File

drupal/core/modules/locale/lib/Drupal/locale/StringInterface.php, line 147
Definition of Drupal\locale\StringInterface.

Class

StringInterface
Defines the locale string interface.

Namespace

Drupal\locale

Code

public function setValues(array $values, $override = TRUE);