$bid = 'myblock';
$block = \Drupal\block_content\Entity\BlockContent::load($bid);
$render = \Drupal::entityTypeManager()->getViewBuilder('block_content')->view($block);
$block_manager = \Drupal::service('plugin.manager.block');
| image: docker.mydomain.com/build/kube-go-make | |
| variables: | |
| DOCKER_TAG: docker.mydomain.com/myapp/home:$CI_COMMIT_REF_SLUG | |
| DOCKER_HOST: tcp://localhost:2375 | |
| DOCKER_DRIVER: overlay | |
| PROD_RSYNC_HOST: myprodserver.com | |
| DOMAIN: mydomain.com | |
| CHART_DIR: chart |
| <?php | |
| // Set the e-mail address that submission should be sent to. | |
| $address = '[email protected]'; | |
| // Set the e-mail subject prefix. | |
| $prefix = 'Website feedback'; | |
| // DO NOT EDIT ANYTHING BELOW UNLESS YOU KNOW WHAT YOU ARE DOING. |
| # Enable maintanance mode | |
| drush state-set system.maintenance_mode 1 | |
| # Backup file field data | |
| drush sql-query "CREATE TABLE media__field_file_bak AS SELECT * FROM media__field_file;" | |
| drush sql-query "CREATE TABLE media_revision__field_file_bak AS SELECT * FROM media_revision__field_file;" | |
| # Truncate file field tables (need to change storage settings) | |
| drush sql-query "TRUNCATE media__field_file;" | |
| drush sql-query "TRUNCATE media_revision__field_file;" |
| (function() { | |
| // Set the timeout for when the dataLayer history should be purged. The default is 30 minutes. | |
| // The timeout needs to be in milliseconds. | |
| var timeout = 30*60*1000; | |
| // Change dataLayerName only if you've defined another named for the dataLayer array in your | |
| // GTM container snippet. | |
| var dataLayerName = 'dataLayer'; | |
| // Don't change anything below. |
| <?php | |
| function MODULENAME_block_build_alter(array &$build, \Drupal\Core\Block\BlockPluginInterface $block) { | |
| // Add the 'query args' cache context to the header block. | |
| if ($this_block_is_the_header_block) { // @TODO: Make this line work. | |
| $build['#cache']['contexts'][] = 'url.query_args'; | |
| } | |
| } |
javascript:(async function(){try{messageId=document.querySelector('div[data-legacy-message-id]').getAttribute('data-legacy-message-id');user=location.pathname.match(/\/u\/(\d)/)[1];await navigator.clipboard.writeText('https://mail.google.com/mail/u/'+user+'/#all/'+messageId)}catch(e){console.error(e)}})()joachim-n/drupal-core-development-project:composer create-project -n joachim-n/drupal-core-development-project drupal-core-dev && cd drupal-core-dev
| REM ***** BASIC ***** | |
| 'Exports sheet(s) to JSON in this file's directory under their sheet name.' | |
| 'Booleans are exported as int (1 = true, 0 = false).' | |
| SUB JSONExportAll | |
| sheets = ThisComponent.Sheets | |
| numSheets = sheets.Count | |
x-select is an Alpine.js directive which provides a styled enhancement over a native <select> element.
Its main goal is to be a progressive enhancement adding no actual features to a select dropdown apart from making it more visually appealing to use (especially for select fields with multiple).
Further goals include: