You are here

public function ViewStorage::getHumanName in Views (for Drupal 7) 8.3

Return the human readable name for a view.

When a certain view doesn't have a human readable name return the machine readable name.

File

lib/Drupal/views/ViewStorage.php, line 215
Definition of Drupal\views\ViewStorage.

Class

ViewStorage
Defines a ViewStorage configuration entity class.

Namespace

Drupal\views

Code

public function getHumanName() {
  if (!empty($this->human_name)) {
    $human_name = $this->human_name;
  }
  else {
    $human_name = $this->name;
  }
  return $human_name;
}