Problem/Motivation

AiMeteringController::buildTopActiveElement()/lazyBuildTopActive() and AiMeteringByRoleController's equivalents are near-identical, differing only in the block plugin ID and cache key suffix (editors vs roles).

Proposed resolution

Extract the shared lazy-builder placeholder logic into a trait or helper taking the plugin ID and cache key suffix as parameters.

AI assistance

Yes.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

codeitwisely created an issue. See original summary.

  • f152bc20 committed on 1.0.x
    Issue #3613262 by codeitwisely: Extract shared lazy-builder placeholder...
codeitwisely’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

codeitwisely’s picture

Status: Fixed » Closed (fixed)