Problem/Motivation

Currently, the Schema App module requests the schema for every front end page. This can result in wasteful requests to Schema App for pages that will never have a schema in Schema App.

Proposed resolution

Provide a Drupal hook for sites to implement their own business logic to determine if the schema should be added to the page.

Remaining tasks

None.

User interface changes

None.

API changes

Adds a new hook_schemaapp_schema_visibility, see schemaapp.api.php for details.

Data model changes

None.

CommentFileSizeAuthor
#3 schemaapp-3521239-MR5--20250425-1.diff1.57 KBrecrit

Issue fork schemaapp-3521239

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

recrit created an issue. See original summary.

recrit’s picture

Status: Active » Needs review
StatusFileSize
new1.57 KB

I created the MR 5 with the new hook. Attached is a static patch that can be used for composer builds. Any further development should be done in the issue branch.