You are here

public function GroupRelationBase::getContentTypeLabel in Group 2.0.x

Returns the administrative label for a group content type.

Return value

string The group content type label.

Overrides GroupRelationInterface::getContentTypeLabel

File

src/Plugin/Group/Relation/GroupRelationBase.php, line 181

Class

GroupRelationBase
Provides a base class for GroupContentEnabler plugins.

Namespace

Drupal\group\Plugin\Group\Relation

Code

public function getContentTypeLabel() {
  return $this
    ->getGroupType()
    ->label() . ': ' . $this
    ->getLabel();
}