1 ckeditor5.admin.inc _ckeditor5_settings_stringify_style_list(array $style_list = NULL)

Convert the stored array of styles into a string for editing.

Parameters

array $style_list: The style list as returned by _ckeditor5_settings_parse_style_list().

Return value

string: The string representation of the style list.

File

core/modules/ckeditor5/ckeditor5.admin.inc, line 199
Admin page callbacks for the CKEditor 5 module.

Code

function _ckeditor5_settings_stringify_style_list(array $style_list = NULL) {
  $string = '';
  if ($style_list) {
    foreach ($style_list as $style) {
      $string .= $style['element'] . '.' . implode(' ', $style['classes']) . '|' . $style['name'] . "\n";
    }
  }
  return $string;
}