public function View::label in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Entity/View.php \Drupal\views\Entity\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 146 - Contains \Drupal\views\Entity\View.
Class
- View
- Defines a View configuration entity class.
Namespace
Drupal\views\EntityCode
public function label() {
if (!($label = $this
->get('label'))) {
$label = $this
->id();
}
return $label;
}