You are here

public function GroupContent::label in Group 8

Same name and namespace in other branches
  1. 2.0.x src/Entity/GroupContent.php \Drupal\group\Entity\GroupContent::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 ContentEntityBase::label

1 call to GroupContent::label()
GroupContent::preSave in src/Entity/GroupContent.php
Acts on an entity before the presave hook is invoked.

File

src/Entity/GroupContent.php, line 131

Class

GroupContent
Defines the Group content entity.

Namespace

Drupal\group\Entity

Code

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