Skip to content

victorstack-ai/drupal-content-audit

Repository files navigation

Content Media Audit (Drupal 10)

Audit media items for two common accessibility/content hygiene issues:

  • Missing alt text on image fields.
  • Unpublished media items lingering in the library.

Usage

Run the Drush command to get a table report:

drush content_media_audit:report

Optional filters:

  • --bundle=image limit results to a specific media bundle.

Columns: id, label, bundle, langcode, issue, details.

Development

composer install
composer lint
composer phpcs
composer phpunit

How it works

  • MediaAudit service scans media entities, inspects image fields, and normalizes data for the analyzer.
  • MediaIssueAnalyzer is framework-agnostic and unit tested; it flags missing alt text counts and unpublished media.
  • A Drush command formats the report for CLI/CI use.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published