Expand EntityCrawlerTrait to allow any render array

Created on 6 February 2025, 16 days ago

Problem/Motivation

We have getRenderedEntityCrawler and getBlockPluginCrawler that have some common parts, being:

  • Get a render array
  • Render it
  • Get a symfony crawler
  • Generate HTML output

These are great, but sometimes you just want to do the same for and miscellaneous render array.

Steps to reproduce

Proposed resolution

  • Introduce ::getRenderArrayCrawler
  • Refactor ::getRenderedEntityCrawler and ::getBlockPluginCrawler to use ::getRenderArrayCrawler
  • Consider renaming the trait RenderCrawlerTrait or just CrawlerTrait and deprecate the existing trait

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Component

Code

Created by

🇦🇺Australia mstrelan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024