SensorMessage.php in Monitoring 8
File
src/Plugin/views/field/SensorMessage.php
View source
<?php
namespace Drupal\monitoring\Plugin\views\field;
use Drupal\views\Plugin\views\field\FieldPluginBase;
use Drupal\views\ResultRow;
class SensorMessage extends FieldPluginBase {
public function render(ResultRow $values) {
$value = $this
->getValue($values);
return $this
->sanitizeValue($value, 'xss_admin');
}
}
Classes
Name |
Description |
SensorMessage |
Provides a field handler that renders a log message properly. |