Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Embera

Security covered Drupal 9–11
View on drupal.org

What this module does

This module is actually just a wrapper of the great Embera PHP library developed by Michael Pratt.

Copying from the library's GitHub description:

A Oembed consumer library, that gives you information about urls. It helps you replace urls to youtube or vimeo for example, with their html embed code. It has advanced features like offline support, responsive embeds and caching support.

By installing this module you get the Embera PHP library installed in you /vendor/ folder.
As a bonus, you also get a Drupal service embera.manager which uses Embera's file cache for storing responses (configurable via embera.file_cache.duration setting).

The service also provides the following methods:
- getThumbnailUrl(): Returns the URL of the thumbnail of the item
- getTitle(): Returns the title of the item.
- getEmbedCode(): Returns the embed code of the item.
- getEmbedInformation(): Returns the full response retrieved from the oEmbed provider via Embera.

The methods above also use static caching of the response (regardless of the file caching) for optimized performance in the same request.

Embera class' configuration

The configuration of the Embera class is easily modified by the embera.class.configuration setting. Check the Passing configuration options section of the documentation to check which options are supported.

Regarding the file cache, the responses get cached for 3600 seconds by default. You may modify the number of seconds by setting the embera.file_cache.duration to your desired value.

If for any reason, you want to disable the file cache completely, please set the embera.file.cache.disabled setting to TRUE.

PS: This module is destined to be used by module developers. You shouldn't install it unless you intend to use its service or another module requires it as a dependency.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Mar 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core Release date
1.0.7 Stable 9–11 Sep 10, 2024
1.0.6 Stable 8–11 Sep 10, 2024
1.0.5 Stable 8–11 Sep 10, 2024
1.0.4 Stable Mar 10, 2023