You are here

public function CronPlugin::settingsLabel in Ultimate Cron 8.2

Get label for a specific setting.

2 calls to CronPlugin::settingsLabel()
CronPlugin::fallbackalize in src/CronPlugin.php
Process fallback form parameters.
Simple::settingsLabel in src/Plugin/ultimate_cron/Scheduler/Simple.php
Get label for a specific setting.
1 method overrides CronPlugin::settingsLabel()
Simple::settingsLabel in src/Plugin/ultimate_cron/Scheduler/Simple.php
Get label for a specific setting.

File

src/CronPlugin.php, line 135

Class

CronPlugin
This is the base class for all Ultimate Cron plugins.

Namespace

Drupal\ultimate_cron

Code

public function settingsLabel($name, $value) {
  if (is_array($value)) {
    return implode(', ', $value);
  }
  else {
    return $value;
  }
}