function Media::label

Same name in other branches
  1. 9 core/modules/media/src/Entity/Media.php \Drupal\media\Entity\Media::label()
  2. 8.9.x core/modules/media/src/Entity/Media.php \Drupal\media\Entity\Media::label()
  3. 11.x core/modules/media/src/Entity/Media.php \Drupal\media\Entity\Media::label()

Overrides ContentEntityBase::label

File

core/modules/media/src/Entity/Media.php, line 114

Class

Media
Defines the media entity class.

Namespace

Drupal\media\Entity

Code

public function label() {
    return $this->getName();
}

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