Skip to content

Drupal Content Entity schema generator for Druxt with support for View and Form displays.

schemaHandler

View source on GitHub

schemaHandler ⇒ function

Server middleware that serves a schema regenerated from Drupal.

Mounted at /_druxt/schema, it answers GET /_druxt/schema/<id>. It serves only what the build already puts in the browser bundle as schema files.

Kind: global constant
Returns: function - A Connect handler.

ParamTypeDescription
getSchemafunctionReturns a promise of the schema for an ID, or of false when there is none.