public function ParagraphSummary::resolve in Thunder 6.2.x
Resolves the paragraphs summary.
Parameters
\Drupal\paragraphs\Entity\Paragraph $paragraph: The entity.
Return value
mixed The paragraphs summary.
File
- modules/
thunder_gqls/ src/ Plugin/ GraphQL/ DataProducer/ ParagraphSummary.php, line 36
Class
- ParagraphSummary
- Resolves the paragraphs summary.
Namespace
Drupal\thunder_gqls\Plugin\GraphQL\DataProducerCode
public function resolve(Paragraph $paragraph) {
return $paragraph
->getSummaryItems()['content'];
}