You are here

public function BlazyAdminTest::getSkinOptions in Blazy 8

Returns available blazy_test skins for select options.

1 call to BlazyAdminTest::getSkinOptions()
BlazyAdminTest::buildSettingsForm in tests/modules/blazy_test/src/Form/BlazyAdminTest.php
Returns all settings form elements.

File

tests/modules/blazy_test/src/Form/BlazyAdminTest.php, line 151

Class

BlazyAdminTest
Provides resusable admin functions or form elements.

Namespace

Drupal\blazy_test\Form

Code

public function getSkinOptions() {
  if (!isset($this->skinOptions)) {
    $this->skinOptions = [];
    foreach ($this
      ->getSkins() as $skin => $properties) {
      $this->skinOptions[$skin] = Html::escape($properties['name']);
    }
  }
  return $this->skinOptions;
}