public function View::label

Overrides \Drupal\Core\Entity\Entity::label().

When a certain view doesn't have a label return the ID.

Overrides Entity::label

File

drupal/core/modules/views/lib/Drupal/views/Plugin/Core/Entity/View.php, line 159
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 label($langcode = NULL) {
  if (!($label = $this
    ->get('label'))) {
    $label = $this
      ->id();
  }
  return $label;
}