public function GroupRelationInterface::getContentLabel in Group 2.0.x
Retrieves the label for a piece of group content.
Parameters
\Drupal\group\Entity\GroupContentInterface $group_content: The group content entity to retrieve the label for.
Return value
string The label as expected by \Drupal\Core\Entity\EntityInterface::label().
1 method overrides GroupRelationInterface::getContentLabel()
- GroupRelationBase::getContentLabel in src/
Plugin/ Group/ Relation/ GroupRelationBase.php - Retrieves the label for a piece of group content.
File
- src/
Plugin/ Group/ Relation/ GroupRelationInterface.php, line 138
Class
- GroupRelationInterface
- Defines an interface for pluggable GroupRelation back-ends.
Namespace
Drupal\group\Plugin\Group\RelationCode
public function getContentLabel(GroupContentInterface $group_content);