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
<form method="post" data-controller="form-debounce" data-action="submit->form-debounce#debounce" data-form-debounce-is-submitting-class="submitting"> | |
[...] | |
<button type="submit" data-form-debounce-target="submitButton"> | |
Submit once | |
</button> | |
</form> |
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
<button type="submit" | |
class="btn" | |
data-controller="confirm-submit" | |
data-confirm-submit-confirmation-label-value="Are you sure?" | |
data-confirm-submit-warning-class="btn--warning" | |
data-action="click->confirm-submit#click"> | |
Submit | |
</button> |
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
{% macro collection_item(form) %} | |
<div data-form-collection-target="field"> | |
{{ form_widget(form) }} | |
<button type="button" | |
data-action="form-collection#removeItem"> | |
remove | |
</button> | |
</div> | |
{% endmacro %} |
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
<?php | |
namespace My\Extension\MetaTag; | |
use TYPO3\CMS\Core\Resource\FileRepository; | |
use TYPO3\CMS\Core\Utility\GeneralUtility; | |
use TYPO3\CMS\Core\Utility\RootlineUtility; | |
use TYPO3\CMS\Extbase\Service\ImageService; | |
class OpenGraphMetaTagManager extends \TYPO3\CMS\Seo\MetaTag\OpenGraphMetaTagManager |
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
const Encore = require('@symfony/webpack-encore'); | |
const tailwindcss = require('tailwindcss'); | |
const autoprefixer = require('autoprefixer'); | |
const purgecss = require('@fullhuman/postcss-purgecss')({ | |
content: [ | |
'./templates/**/*.twig', | |
'./assets/js/**/*.vue', | |
'./assets/js/**/*.js', |
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
<?php | |
namespace My\Bundle\Validator\Constraint; | |
use Symfony\Component\Validator\Constraint; | |
/** | |
* @Annotation | |
*/ | |
class LaterDateField extends Constraint |