PHP code example of jacerider / neo_twig
1. Go to this page and download the library: Download jacerider/neo_twig library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jacerider / neo_twig example snippets
$build = [
'#theme' => 'image_formatter',
'#item' => $item,
'#url' => $url,
// Both added by this module.
'#image_attributes' => ['class' => ['rounded-lg', 'w-full']],
'#link_attributes' => ['class' => ['block'], 'data-lightbox' => 'gallery'],
];