This file contains hidden or 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
^((?!enter_text_here).)*$ |
This file contains hidden or 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 | |
// phpcs:ignoreFile | |
/** | |
* @file | |
* Local development override configuration feature. | |
* | |
* To activate this feature, copy and rename it such that its path plus | |
* filename is 'sites/default/settings.local.php'. Then, go to the bottom of |
This file contains hidden or 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
boolean | |
changed | |
comment | |
created | |
datetime | |
decimal | |
entity_reference | |
file | |
float |
This file contains hidden or 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
name: drupal9 | |
recipe: drupal9 | |
config: | |
webroot: web | |
database: mariadb | |
xdebug: true | |
php: 7.4 | |
drush: ~10 | |
excludes: |
This file contains hidden or 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 | |
// @codingStandardsIgnoreFile | |
/** | |
* @file | |
* Local development override configuration feature. | |
* | |
* To activate this feature, copy and rename it such that its path plus | |
* filename is 'sites/default/settings.local.php'. Then, go to the bottom of |
This file contains hidden or 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
h1. Creating a variation of an entity form | |
1. [UI](#ui) | |
1.1 [Create the Form Mode](#create_form_mode) | |
1.2 [Activate the Form Display](#activate_form_display) | |
1.3 [Edit Form Display as needed](#edit_form_display) | |
2. [Code](#code) | |
2.1 [Create the Form](#create_form) | |
2.2 [Create the route](#create_route) | |
2.3 [Attach the form display using hook_entity_type_build()](#attach_form_display) |
This file contains hidden or 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
// Install webp via Brew | |
brew install webp | |
cwebp [-preset <...>] [options] in_file [-o out_file] | |
options: | |
-o outfile | |
-q <float> quality 0-100 | |
-alpha_q <int> transparency compression 0-100 | |
-preset <string> default, photo, picture, drawing, icon, text | |
-preset must come first |
This file contains hidden or 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
Using exclude | |
============================ | |
--exclude=pattern | |
tar --exclude={*.mp4,*.mov,*.wav,*.wmv,*.mpg,*.mpeg,*.flv,*.avi,*.ogv,*.ogg,*.webm,*.wav,*.mp3,*.wma,*.7z,*.gz,*.tar,*.zip,*.sql,*.jpg,*.gif,*.png,*.svg,*.ico} -cvf output.file.tar input.file | |
Using exclude with text file | |
============================ | |
-X file |
This file contains hidden or 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
Create a few shell scripts so that you can enable/disable xdebug easily on Mac OSX using Brew | |
create file | |
=========== | |
touch xdebug-enable.sh | |
edit file contents | |
================== | |
vim xdebug-enable.sh |
NewerOlder