Media Types
Purpose: Create custom media source plugins to integrate third-party services (APIs, platforms), extend oEmbed sources, manage metadata attributes, map fields, generate thumbnails, and configure display/form widgets.
I Need To...
| Task | Guide |
|---|---|
| Decide between core/contrib/custom media types | Media Type Selection Strategy |
| Choose the right base class for a custom plugin | Base Class Selection |
| Understand the media source architecture | Architecture Overview |
| Create a custom API integration plugin | Custom Media Source Plugin |
| Extend oEmbed for Instagram/Twitter/TikTok | Extending OEmbed Sources |
| Extract and provide metadata attributes | Metadata System |
| Map metadata to entity fields | Field Mapping |
| Generate and cache thumbnails | Thumbnail Generation |
| Inject services (HTTP client, logger, cache) | Dependency Injection |
| Validate source field values | Validation Constraints |
| Configure display and form widgets | Display Configuration |
| Apply security best practices | Security Best Practices |
| Optimize performance and caching | Performance Optimization |
| Test media source plugins | Testing Strategies |
| Avoid common mistakes | Anti-Patterns |