You are here

public function GroupContentType::getGroupType in Group 2.0.x

Same name and namespace in other branches
  1. 8 src/Entity/GroupContentType.php \Drupal\group\Entity\GroupContentType::getGroupType()

Gets the group type the content type was created for.

Return value

\Drupal\group\Entity\GroupTypeInterface The group type for which the content type was created.

Overrides GroupContentTypeInterface::getGroupType

1 call to GroupContentType::getGroupType()
GroupContentType::updateContentPlugin in src/Entity/GroupContentType.php
Updates the configuration of the group relation plugin.

File

src/Entity/GroupContentType.php, line 126

Class

GroupContentType
Defines the Group content type configuration entity.

Namespace

Drupal\group\Entity

Code

public function getGroupType() {
  return GroupType::load($this
    ->getGroupTypeId());
}