public function GroupContent::label in Group 2.0.x
Same name and namespace in other branches
- 8 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 129
Class
- GroupContent
- Defines the Group content entity.
Namespace
Drupal\group\EntityCode
public function label() {
return $this
->getRelationPlugin()
->getContentLabel($this);
}