You are here

public function GroupContentEnablerBase::getEntityReferenceLabel in Group 8

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 GroupContentEnablerInterface::getEntityReferenceLabel

File

src/Plugin/GroupContentEnablerBase.php, line 423

Class

GroupContentEnablerBase
Provides a base class for GroupContentEnabler plugins.

Namespace

Drupal\group\Plugin

Code

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