Skip to content

Out-of-the-box decoupled Drupal sites with DruxtSite, wiring layout, blocks, menus and content together from one Nuxt module.

DruxtSiteMixin

View source on GitHub

DruxtSiteMixin

Provides Vue.js properties for DrupalSite Wrapper components.

Kind: global mixin
Example

<template>
  <div>
    <DruxtBlockRegion
      v-for="region of regions"
      :key="region"
      v-bind="props[region]"
    />
  </div>
</template>

<script>
import { DruxtSiteMixin } from 'druxt-site'

export default {
  mixins: [DruxtSiteMixin],
}
</script>

.props

Vue.js Properties.

Kind: static property of DruxtSiteMixin


.langcode : string

The JSON:API resource language code.

Kind: static property of props


.props ⇒ object

DruxtBlockRegion propsData for regions.

Kind: static property of props


.regions : Array.<string>

The Block region names.

Kind: static property of props


.theme : string

The Drupal theme ID.

Kind: static property of props