public function SensorListBuilder::render in Monitoring 8
Builds the entity listing as renderable array for table.html.twig.
@todo Add a link to add a new item to the #empty text.
Overrides EntityListBuilder::render
File
- src/
SensorListBuilder.php, line 108 - Contains \Drupal\monitoring\SensorListBuilder.
Class
- SensorListBuilder
- Defines a class to build a listing of sensor config entities.
Namespace
Drupal\monitoringCode
public function render() {
$form = \Drupal::formBuilder()
->getForm($this);
$form['sensors']['#attributes']['class'][] = 'monitoring-sensor-overview';
$form['#attached']['library'][] = 'monitoring/monitoring.sensor.overview';
$form['#attached']['library'][] = 'monitoring/monitoring';
$form['#attached']['library'][] = 'core/drupal.ajax';
return $form;
}