Skip to content

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

parseSchemaId

View source on GitHub

parseSchemaId ⇒ object | boolean

The parts of a schema ID, <entity type>--<bundle>--<mode>--<view|form>.

Kind: global constant
Returns: object | boolean - The entity type, bundle, mode and schema type, or false for any other string.

ParamTypeDescription
idstringThe schema ID.

createHold ⇒ Object

A hold for schemas regenerated from one Drupal site, kept until the next cache clear.

Each hold has its own schemas and generator, so refreshes for different sites never share them. Each clear starts a new generator, as a generator keeps the configuration it has read. Concurrent calls for one ID share one generation. A schema generated across a clear is returned to its callers but not held. A failed or empty generation is not held, so the next call tries again.

Kind: global constant
Returns: Object - get(id) resolves to the schema, or false when Drupal has none; clear() empties the hold.

ParamTypeDescription
createDruxtSchemafunctionReturns a new schema generator for the site.