You are here

public function GroupContentEnablerBase::getContentTypeLabel in Group 8

Returns the administrative label for a group content type.

Return value

string The group content type label.

Overrides GroupContentEnablerInterface::getContentTypeLabel

File

src/Plugin/GroupContentEnablerBase.php, line 184

Class

GroupContentEnablerBase
Provides a base class for GroupContentEnabler plugins.

Namespace

Drupal\group\Plugin

Code

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