function public function SettingBase::processDeprecatedValues

8.x-3.x SettingBase.php public SettingBase::processDeprecatedValues(array $values, array $deprecated)

Retrieves the value from other deprecated settings.

Parameters

array $values: An array of values, keyed by deprecated setting name.

\Drupal\bootstrap\Plugin\Setting\DeprecatedSettingInterface[] $deprecated: An array of deprecated Setting objects indicating this setting replaced theirs, keyed by deprecated setting name.

Return value

string The setting's deprecated value.

Overrides SettingInterface::processDeprecatedValues

Class

SettingBase
Base class for a setting.

Namespace

Drupal\bootstrap\Plugin\Setting

Source src/Plugin/Setting/SettingBase.php (line 250)

public function processDeprecatedValues(array $values, array $deprecated) {
  // Most deprecated settings will be a 1:1 map. Anything more complex than
  // this should be handled by the newer replacement setting itself.
  return !empty($values) ? reset($values) : NULL;
}