You are here

public function GroupRelationBase::getEntityReferenceDescription in Group 2.0.x

Returns the description for the entity reference field.

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

Return value

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

Overrides GroupRelationInterface::getEntityReferenceDescription

File

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

Class

GroupRelationBase
Provides a base class for GroupContentEnabler plugins.

Namespace

Drupal\group\Plugin\Group\Relation

Code

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