Install
Works with Drupal: ^10.3 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
52.95 KB
MD5: 61f877dadd0f2bb1c5969ae67a5ab3a9
SHA-1: 72f229448d8520b91cc186acd3b9fdf38091b106
SHA-256: 7901adae4bab8f6777bff47c47dc01d8b83920647cb234618341bd470eb204a0
Download zip
89.52 KB
MD5: 35ada004304b18cf61fc8f940fdcf9d1
SHA-1: 0adc7e0bfdf6a920f12cf29d2d8c5c71b4fc0246
SHA-256: 089e39206d1db60762a597e74ed93bb53428397a86036020683c6d7ebb731b1e
Release notes
Canvas Entities 1.0.0-alpha1
First release of Canvas Entities (renamed from Canvas Paragraphs to reflect
that it now bridges more than just paragraphs).
Extends Drupal Canvas Content Templates — visual, drag-and-drop SDC design —
to paragraph and taxonomy term entities, which Canvas doesn't support
natively. Design a Content Template for a paragraph type or taxonomy
vocabulary the same way you would for a node, and every entity of that type
renders through it automatically, everywhere it's used.
Features
-
Content Template tab on a paragraph type's or taxonomy vocabulary's
Manage Display page, with a "Create with Canvas" shortcut when no
template exists. -
Paragraph Field and Entity Reference Field
SDC components for rendering nested/referenced entities through their own
templates. -
Admin screen (Structure > Content Templates (Non-node)) to
create, preview, and delete bridged templates. -
Drush commands for bulk template creation, listing bundles/templates, and
generating sample content — useful in CI/build pipelines. -
Enum field mapping fix so
list_string/list_integer
fields map cleanly to SDC enum props. -
Clean markup: drops the default entity wrapper when a template is active,
so the component's own root element becomes the real DOM root. - Access checks enforced on paragraph field rendering and sample content creation.
-
GitLab CI pipeline (lint + Kernel tests) and Kernel test coverage for the
content template creator, sample content, form, and quick-create flows.
Known gaps
-
Experimental: API and supported entity types may still change as Canvas
(core issue#3498525) evolves. -
No automated test coverage yet for some edge cases in the quick-create
flow — verified manually so far.
Requirements
- Drupal 10.3+ or Drupal 11
- PHP 8.3+
- Canvas (provides Content Templates), Paragraphs
- Field UI, Taxonomy, and Navigation (Drupal core)