Add Content Intel plugin for content_intel module integration#14
Merged
Add Content Intel plugin for content_intel module integration#14
Conversation
added 3 commits
January 28, 2026 11:53
- Provides ContentIntel plugin that exposes Analyze module data - Extracts data from analyze_table theme (#rows with label/data) - Extracts full gauge data (caption, value, display_value, range labels/values) - Uses render context isolation for CLI compatibility - Includes normalizeKey helper for consistent machine keys Allows AI tools to access analysis data via Drush CLI commands: drush ci:entity node 1 --plugins=analyze --format=json
- Add getApplicableDefinitions() method to HelperInterface
- Update Helper.php to use {@inheritdoc}
- Add phpstan.neon to exclude optional module plugins from analysis
Update run-drupal-check.sh to exclude ContentIntel plugin directory from phpstan analysis since it depends on the optional content_intel module. Also add treatPhpDocTypesAsCertain: false for consistency.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Allows AI tools to access analysis data via Drush CLI commands.
Related Issue
Closes #12
Test plan
drush ci:pluginsto verify analyze plugin appearsdrush ci:entity node 1 --plugins=analyze --format=jsonto see analysis dataExample output
{ "analyze_ai_brand_voice_analyzer": { "plugin_label": "AI Brand Voice Analysis", "data": { "caption": "AI Brand Voice Alignment", "value": 0.95, "display_value": "+0.9", "range_min_label": "Off-brand", "range_mid_label": "Neutral", "range_max_label": "On-brand", "range_min": -1, "range_max": 1 } } }