public function View::getHumanName

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

drupal/core/modules/views/lib/Drupal/views/Plugin/Core/Entity/View.php, line 199
Definition of Drupal\views\Plugin\Core\Entity\View.

Class

View
Defines a View configuration entity class.

Namespace

Drupal\views\Plugin\Core\Entity

Code

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