You are here

public function BackgroundImageForm::getSettingValues in Background Image 8

Same name and namespace in other branches
  1. 2.x src/Form/BackgroundImageForm.php \Drupal\background_image\Form\BackgroundImageForm::getSettingValues()
  2. 2.0.x src/Form/BackgroundImageForm.php \Drupal\background_image\Form\BackgroundImageForm::getSettingValues()

Retrieves all the setting values.

Return value

array

File

src/Form/BackgroundImageForm.php, line 581

Class

BackgroundImageForm

Namespace

Drupal\background_image\Form

Code

public function getSettingValues() {
  $values = [];
  foreach (array_keys($this->backgroundImage
    ->getSettings()
    ->get()) as $name) {
    $value = $this
      ->getSettingValue($name);
    if (isset($value)) {
      $values[$name] = $value;
    }
  }
  return $values;
}