drupal-paragraphs

Installation
SKILL.md

Drupal Paragraphs

Accessing Paragraphs from a Node

use Drupal\paragraphs\Entity\Paragraph;

// Get all paragraphs from a field
$items = $node->get('field_content')->referencedEntities();
foreach ($items as $paragraph) {
  /** @var \Drupal\paragraphs\Entity\Paragraph $paragraph */
  $bundle = $paragraph->bundle();
  $value = $paragraph->get('field_text')->value;
}

// Get first paragraph
$paragraph = $node->get('field_content')->first()?->entity;
Installs
30
GitHub Stars
71
First Seen
Apr 17, 2026
drupal-paragraphs — edutrul/drupal-ai