You are here

public function EckEntityBundle::label in Entity Construction Kit (ECK) 8

Gets the label of the entity.

Return value

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

Overrides EntityBase::label

File

src/Entity/EckEntityBundle.php, line 69

Class

EckEntityBundle
Defines the ECK entity bundle configuration entity.

Namespace

Drupal\eck\Entity

Code

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