Skip to content

Drupal Display Mode-powered Entity, Form and Field Druxt components.

DruxtFieldEntityReferenceLabel

View source on GitHub

DruxtFieldEntityReferenceLabel

Deprecated in druxt-entity:0.16.0, removed from druxt-entity:2.0.0. Use a field wrapper component resolved by the component suggestion system instead.

Renders an entity reference field as the referenced entities' labels, optionally linked.

See: /modules/entity/deprecations


.data()

Provides the referenced entities' label and link data for rendering.

Kind: static method of DruxtFieldEntityReferenceLabel
Properties

NameTypeDefaultDescription
[component]string"span"The component used to wrap the field items.
entitiesboolean | objectThe label text and link props per referenced entity, or false until fetched.
loadingbooleanLoading status.

.props

Kind: static property of DruxtFieldEntityReferenceLabel


.errors : array

JSON:API errors.

Kind: static property of props
Default: []


.langcode : string

The JSON:API resource language code.

Kind: static property of props


.inner : object

Inner wrapper component and props.

Kind: static property of props
Default: { component: 'div', props: {} }


.relationship : boolean

Field relationship status.

Kind: static property of props


.schema : object

Field schema object.

Kind: static property of props


.value : array | boolean | number | object | string

The Field value.

Kind: static property of props


.wrapper : object

Outer wrapper component and props.

Kind: static property of props
Default: { component: 'div', props: {} }


.computed

Kind: static property of DruxtFieldEntityReferenceLabel


.items() : boolean | object

The Field items, normalised to an array for rendering.

Relationship values are mapped to { type, uuid, mode } objects for use with the DruxtEntity component.

Kind: static method of computed
Default: []