You are here

constant RELATION_FIELD_NAME in Relation 8.2

Same name and namespace in other branches
  1. 8 relation.module \RELATION_FIELD_NAME

Use the following suffix on field names.

Usage:

// Create a relation field.
$relation_field = FieldStorageConfig::create(array(
  'entity_type' => $entity_type,
  'name' => RELATION_FIELD_NAME,
));

// Load a relation field.
$relation_field = entity_load('field_entity', $entity_type . RELATION_FIELD_NAME);
1 use of RELATION_FIELD_NAME
relation_add_endpoint_field in ./relation.module
Adds an endpoint field to a relation type.

File

./relation.module, line 21
Describes relations between entities.

Code

const RELATION_FIELD_NAME = 'endpoints';