public function OpenlayersObjects::list_table_header in Openlayers 7.3
Provide the table header.
If you've added columns via list_build_row() but are still using a table, override this method to set up the table header.
Overrides ctools_export_ui::list_table_header
File
- modules/
openlayers_ui/ src/ Plugin/ export_ui/ OpenlayersObjects.php, line 64 - Class openlayers_objects_ui.
Class
- OpenlayersObjects
- Class openlayers_objects_ui.
Code
public function list_table_header() {
$header = array();
if (!empty($this->plugin['export']['admin_title'])) {
$header[] = array(
'data' => t('Name'),
'class' => array(
'ctools-export-ui-title',
),
);
}
$header[] = array(
'data' => t('Machine name'),
'class' => array(
'ctools-export-ui-name',
),
);
$header[] = array(
'data' => t('Service'),
'class' => array(
'ctools-export-ui-service',
),
);
$header[] = array(
'data' => t('Storage'),
'class' => array(
'ctools-export-ui-storage',
),
);
$header[] = array(
'data' => t('Operations'),
'class' => array(
'ctools-export-ui-operations',
),
);
return $header;
}