Created
September 13, 2021 08:36
-
-
Save vasilvestre/1fa0a824446a1398bd6a37ab13aae29d to your computer and use it in GitHub Desktop.
Twig PHP typing (from https://github.com/EasyCorp/EasyAdminBundle/blob/master/src/Resources/views/crud/field/datetime.html.twig )
This file contains 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
{# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #} | |
{# @var field \EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto #} | |
{# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #} | |
<time datetime="{{ field.value|date('c') }}" title="{{ field.value|date('r') }}">{{ field.formattedValue }}</time> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment