Skip to content

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

DruxtFieldEntityReferenceEntityView

View source on GitHub

DruxtFieldEntityReferenceEntityView

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

Entity Reference Entity View field.

See: https://app.feature-docgen-deprecations.druxtjs-org.au2.amazee.io/modules/entity/deprecations


.computed

Kind: static property of DruxtFieldEntityReferenceEntityView


.mode : string

Display mode for referenced entity.

Kind: static property of computed
Default: "default"


.props : object

Properties to bind to DruxtEntity component.

Kind: static property of computed


.items() : boolean | object

Kind: static method of computed
Default: false


.props

Kind: static property of DruxtFieldEntityReferenceEntityView


.errors : array

JSON:API errors.

Kind: static property of props


.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: {} }
Todo

  • Move inner prop to new common Wrapper mixin.

.relationship : boolean

Field relationship status.

Kind: static property of props


.schema : object

Field schema object.

Kind: static property of props


.value

The Field value.

Kind: static property of props


.wrapper : object

Outer wrapper component and props.

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

  • Move wrapper prop to new common Wrapper mixin.

.data(vm)

Kind: static method of DruxtFieldEntityReferenceEntityView

ParamTypeDescription
vmobjectThe component ViewModel.
vm.valueArray | boolean | number | object | stringThe Field value.

Properties

NameTypeDescription
modelobjectThe model object.