Install
Works with Drupal: ^8 || ^9Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
13.78 KB
MD5: 22da79fac83c313aaad9ace41134f00f
SHA-1: abd99e8eefa9292cdc7b0ad8487c1de40d4297da
SHA-256: dcfedecdedeb53c4c37b1cedbc2284c9738aef68263001bb5d04fb651059e9e5
Download zip
20.61 KB
MD5: 33a32550300b04bfdea2d00e1acbdb82
SHA-1: 7bc4e6ae46ca649fca70fb3a8f5fc27c03096c37
SHA-256: 53a10999330ffbfc168f01217fe8feda25327809ab82477c38b258d89e18f43e
Release notes
This release was mostly about #3221178: Create twig filter to display date from raw value. It's one of those features that comes from the maintainer's need to do something on a project. And then it became, why did we not have this before? It's really a matter of not having thought of it before needing it for a project. So, here in lies the new feature of being able to apply the AP Style to a raw timestamp in twig.
It can look something like this:
{{ content.field_carousel_slide[i]["#paragraph"].field_article.0.entity.published_at.value|ap_style }}