$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');
Dockerfile contents in the image located at : https://hub.docker.com/layers/jdecode/php8.0rc2/1/images/sha256-f732b4df8f6021e6c0dada4d31d0444d916ffe204da597d81f24f443ebced6d1?context=explore
The above link takes you directly to tag "1", and the image's generic URL is: https://hub.docker.com/r/jdecode/php8.0rc2
#PHP 8.x RC2!
FROM php:8.0.0RC2-apache
#Update!
| # Quick and lean Drupal local dev with Podman and an unpriviledged user. | |
| # | |
| # To use, run the following: | |
| # 1. projectname="myproject" | |
| # 2. composer create-project drupal-composer/drupal-project:8.x-dev $projectname --no-interaction | |
| # 3. cd $projectname | |
| # 4. curl -o Makefile https://gist.githubusercontent.com/spotzero/18fd821cb9081c666a629e940f166f52/raw | |
| # 5. make start | |
| # 6. make install | |
| # |
[Update 2024] - Take a look at Drupal at your fingertips. Lot's of great stuff there.
// Load file object
$file = File::load($fid);| # The initial version | |
| if [ ! -f .env ] | |
| then | |
| export $(cat .env | xargs) | |
| fi | |
| # My favorite from the comments. Thanks @richarddewit & others! | |
| set -a && source .env && set +a |
I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).
Use ssh keys and define host aliases in ssh config file (each alias for an account).