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.
Issue fork ai_metering-3613262
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
Comment #4
codeitwisely commentedComment #6
codeitwisely commented