You are here

private function ConfigForm::getCollectors in Devel 8.3

Same name and namespace in other branches
  1. 8 webprofiler/src/Form/ConfigForm.php \Drupal\webprofiler\Form\ConfigForm::getCollectors()
  2. 8.2 webprofiler/src/Form/ConfigForm.php \Drupal\webprofiler\Form\ConfigForm::getCollectors()
  3. 4.x webprofiler/src/Form/ConfigForm.php \Drupal\webprofiler\Form\ConfigForm::getCollectors()

Return value

array

1 call to ConfigForm::getCollectors()
ConfigForm::buildForm in webprofiler/src/Form/ConfigForm.php
Form constructor.

File

webprofiler/src/Form/ConfigForm.php, line 216

Class

ConfigForm
Class ConfigForm.

Namespace

Drupal\webprofiler\Form

Code

private function getCollectors() {
  $options = [];
  foreach ($this->templates as $template) {

    // Drupal collector should not be disabled.
    if ($template[0] != 'drupal') {
      $options[$template[0]] = $template[2];
    }
  }
  asort($options);
  return $options;
}