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'
File
- src/
Form/ SensorDetailForm.php, line 231 - Contains \Drupal\monitoring\Form\SensorDetailForm.
Class
- SensorDetailForm
- Sensor detail form controller.
Namespace
Drupal\monitoring\FormCode
public function formTitle(SensorConfigInterface $monitoring_sensor_config) {
return $this
->t('@label (@category)', array(
'@category' => $monitoring_sensor_config
->getCategory(),
'@label' => $monitoring_sensor_config
->getLabel(),
));
}