You are here

public function SensorForm::formTitle in Monitoring 8

Settings form page title callback.

Parameters

\Drupal\monitoring\SensorConfigInterface $monitoring_sensor_config: The Sensor config.

Return value

string

1 string reference to 'SensorForm::formTitle'
monitoring.routing.yml in ./monitoring.routing.yml
monitoring.routing.yml

File

src/Form/SensorForm.php, line 300
Contains \Drupal\monitoring\Form\SensorForm.

Class

SensorForm
Sensor settings form controller.

Namespace

Drupal\monitoring\Form

Code

public function formTitle(SensorConfigInterface $monitoring_sensor_config) {
  return $this
    ->t('@label settings (@category)', array(
    '@category' => $monitoring_sensor_config
      ->getCategory(),
    '@label' => $monitoring_sensor_config
      ->getLabel(),
  ));
}