You are here

public function GroupRelationBase::getEntityReferenceLabel in Group 2.0.x

Returns the label for the entity reference field.

This allows you to specify the label for the entity reference field pointing to the entity that is to become group content.

Return value

string|null The label for the entity reference field or NULL if none was set.

Overrides GroupRelationInterface::getEntityReferenceLabel

File

src/Plugin/Group/Relation/GroupRelationBase.php, line 216

Class

GroupRelationBase
Provides a base class for GroupContentEnabler plugins.

Namespace

Drupal\group\Plugin\Group\Relation

Code

public function getEntityReferenceLabel() {
  return isset($this->pluginDefinition['reference_label']) ? $this->pluginDefinition['reference_label'] : NULL;
}