API Documentation

DruxtBlocksRegionMixin

blocks

DruxtBlocksRegionMixin

Provides props and computed values for use with a DruxtBlockRegion Wrapper component.

Kind: global mixin
Example

<template>
  <DruxtDebug :json="blocks" />
</template>

<script>
import { DruxtBlocksRegionMixin } from 'druxt-blocks'
export default {
  mixins: [DruxtBlocksRegionMixin]
}
</script>

.props

Kind: static property of DruxtBlocksRegionMixin


.blocks : Array.<objects>

The Block JSON:API resources.

Kind: static property of props
Required:


.langcode : string

The JSON:API resource language code.

Kind: static property of props


.name : string

The Block regions machine name.

Kind: static property of props
Default: "content"


.theme : string

A Drupal theme machine name.

Kind: static property of props
Required: