You are here

public function OpenlayersProjections::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/OpenlayersProjections.php, line 84
Class openlayers_components_ui.

Class

OpenlayersProjections
Class openlayers_components_ui.

Namespace

Drupal\openlayers_ui\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('Storage'),
    'class' => array(
      'ctools-export-ui-storage',
    ),
  );
  $header[] = array(
    'data' => t('Operations'),
    'class' => array(
      'ctools-export-ui-operations',
    ),
  );
  return $header;
}