You are here

public function OpignoGroupManagedContent::getGroupContentType in Opigno group manager 8

Same name and namespace in other branches
  1. 3.x src/Entity/OpignoGroupManagedContent.php \Drupal\opigno_group_manager\Entity\OpignoGroupManagedContent::getGroupContentType()

Get the content type object of this content.

Return value

\Drupal\opigno_group_manager\ContentTypeBase|object Group content type.

File

src/Entity/OpignoGroupManagedContent.php, line 343

Class

OpignoGroupManagedContent
Defines the Opigno Group Content entity.

Namespace

Drupal\opigno_group_manager\Entity

Code

public function getGroupContentType() {
  $manager = \Drupal::getContainer()
    ->get('opigno_group_manager.content_types.manager');
  return $manager
    ->createInstance($this
    ->getGroupContentTypeId());
}