function UpdateSettingsForm::arrayToMultiLineString

Same name in other branches
  1. 10 core/modules/update/src/UpdateSettingsForm.php \Drupal\update\UpdateSettingsForm::arrayToMultiLineString()

Prepares the saved notify_emails property to be displayed in the form.

Parameters

array $value: The value saved in config.

Return value

string The value of the form element.

File

core/modules/update/src/UpdateSettingsForm.php, line 141

Class

UpdateSettingsForm
Configure update settings for this site.

Namespace

Drupal\update

Code

public static function arrayToMultiLineString(array $value) : string {
    return implode("\n", $value);
}

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