You are here

protected function Group::groupContentStorage in Group 8

Same name and namespace in other branches
  1. 2.0.x src/Entity/Group.php \Drupal\group\Entity\Group::groupContentStorage()

Gets the group content storage.

Return value

\Drupal\group\Entity\Storage\GroupContentStorageInterface The group content storage.

1 call to Group::groupContentStorage()
Group::addContent in src/Entity/Group.php
Adds a content entity as a group content entity.

File

src/Entity/Group.php, line 116

Class

Group
Defines the Group entity.

Namespace

Drupal\group\Entity

Code

protected function groupContentStorage() {
  return $this
    ->entityTypeManager()
    ->getStorage('group_content');
}