MediaHooks
Media hooks for the Helper module.
- Full name:
\Drupal\helper\Hook\MediaHooks
Properties
moduleHandler
protected \Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler
Methods
__construct
MediaHooks constructor.
public __construct(\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler): mixed
Parameters:
| Parameter | Type | Description |
|---|---|---|
$moduleHandler |
\Drupal\Core\Extension\ModuleHandlerInterface | |
| The module handler. |
preprocessMediaOembedIframe
Implements hook_preprocess_media_oembed_iframe().
public preprocessMediaOembedIframe(array& $variables): void
Ensures oEmbed iframes always have a title attribute.
Parameters:
| Parameter | Type | Description |
|---|---|---|
$variables |
array |
See Also:
- https://www.drupal.org/project/drupal/issues/3085545
- https://www.drupal.org/project/iframe_title_filter