View::label

public View::label()

Gets the label of the entity.

Return value

string|null The label of the entity, or NULL if there is no label defined.

Overrides Entity::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;
}
doc_Drupal
2016-10-29 09:53:41
Comments
Leave a Comment

Please login to continue.