You are here

protected function GroupContentToEntity::getTargetEntityType in Group 2.0.x

Same name and namespace in other branches
  1. 8 src/Plugin/views/relationship/GroupContentToEntity.php \Drupal\group\Plugin\views\relationship\GroupContentToEntity::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/GroupContentToEntity.php, line 27

Class

GroupContentToEntity
A relationship handler for group content entity references.

Namespace

Drupal\group\Plugin\views\relationship

Code

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