public function OpenlayersStyles::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.
File
- modules/
openlayers_ui/ src/ Plugin/ export_ui/ OpenlayersStyles.php, line 31 - Class openlayers_components_ui.
Class
- OpenlayersStyles
- Class openlayers_components_ui.
Namespace
Drupal\openlayers_ui\UICode
public function list_table_header() {
$header = array();
$header[] = array(
'data' => t('Preview'),
'class' => array(
'ctools-export-ui-preview',
),
);
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;
}