You are here

public function SecKitSettingsForm::getItemsList in Security Kit 8

Same name and namespace in other branches
  1. 2.x src/Form/SecKitSettingsForm.php \Drupal\seckit\Form\SecKitSettingsForm::getItemsList()

Build a list from given items.

1 call to SecKitSettingsForm::getItemsList()
SecKitSettingsForm::buildForm in src/Form/SecKitSettingsForm.php
Form constructor.

File

src/Form/SecKitSettingsForm.php, line 804

Class

SecKitSettingsForm
Implements a form to collect security check configuration.

Namespace

Drupal\seckit\Form

Code

public function getItemsList($items) {
  $list = [
    '#theme' => 'item_list',
    '#items' => $items,
  ];
  return $this->renderer
    ->render($list);
}