1 views_handler_field_system_info.inc public views_handler_field_system_info::label()

Get this field's label based on the selected information.

Overrides views_handler_field::label

File

core/modules/system/views/views_handler_field_system_info.inc, line 187
Definition of views_handler_field_system_info.

Class

views_handler_field_system_info
A handler to display module and theme properties stored in the database.

Code

public function label() {
  if ($this->options['custom_label'] === 'default') {
    $property_options = $this->_getPropertyOptions();
    $label = !empty($property_options[$this->options['info_property']]) ? $property_options[$this->options['info_property']] : '';
    return $label;
  }
  elseif ($this->options['custom_label'] === 'custom' && isset($this->options['label'])) {
    return $this->options['label'];
  }
  return '';
}