drupal-render
CommunityBuild secure, cache-aware render arrays in Drupal.
Authoredutrul
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Builds secure, cache-aware render arrays and safe markup in Drupal 11 controllers, blocks, and services.
Core Features & Use Cases
- Structure and render arrays: define #type, #markup, #cache, and #attributes to compose complex UIs.
- Cache and performance: apply tags, contexts, and max-age correctly to ensure predictable invalidation.
- Markup safety and render elements: use Markup::create, #plain_text, and render elements like html_tag, link, and inline_template to render safely.
- Use cases include rendering nodes in teasers, building dynamic blocks, and server-side rendering with lazy builders.
Quick Start
Create a render array with proper cache metadata and render it via the RendererInterface.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: drupal-render Download link: https://github.com/edutrul/drupal-ai/archive/main.zip#drupal-render Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.