You are here

protected function GroupContentToEntityReverse::getTargetEntityType in Group 2.0.x

Same name and namespace in other branches
  1. 8 src/Plugin/views/relationship/GroupContentToEntityReverse.php \Drupal\group\Plugin\views\relationship\GroupContentToEntityReverse::getTargetEntityType()

Retrieves the entity type ID this plugin targets.

Do not return 'group_content', but the actual entity type ID you're trying to link up to the group_content entity type.

Return value

string The target entity type ID.

Overrides GroupContentToEntityBase::getTargetEntityType

File

src/Plugin/views/relationship/GroupContentToEntityReverse.php, line 24

Class

GroupContentToEntityReverse
A relationship handler which reverses group content entity references.

Namespace

Drupal\group\Plugin\views\relationship

Code

protected function getTargetEntityType() {
  return $this->definition['entity_type'];
}