You are here

public function SensorDetailForm::formTitle in Monitoring 8

Detail page title callback.

Parameters

\Drupal\monitoring\Entity\SensorConfig $monitoring_sensor_config: The Sensor config.

Return value

string

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

File

src/Form/SensorDetailForm.php, line 231
Contains \Drupal\monitoring\Form\SensorDetailForm.

Class

SensorDetailForm
Sensor detail form controller.

Namespace

Drupal\monitoring\Form

Code

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