function View::label

Overrides EntityBase::label

File

core/modules/views/src/Entity/View.php, line 141

Class

View
Defines a View configuration entity class.

Namespace

Drupal\views\Entity

Code

public function label() {
  if (!$label = $this->get('label')) {
    $label = $this->id();
  }
  return $label;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.