You are here

protected function DatalayerSettingsForm::keyReplacementsFromArray in dataLayer 8

1 call to DatalayerSettingsForm::keyReplacementsFromArray()
DatalayerSettingsForm::buildForm in src/Form/DatalayerSettingsForm.php
Form constructor.

File

src/Form/DatalayerSettingsForm.php, line 106

Class

DatalayerSettingsForm
Defines a form that configures datalayer module settings.

Namespace

Drupal\datalayer\Form

Code

protected function keyReplacementsFromArray($replacements) {
  $display = '';
  if (!is_null($replacements)) {
    foreach ($replacements as $label => $replacement) {
      $display .= $label . "|" . $replacement . "\r\n";
    }
    return $display;
  }
}