$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');
ARG BUILD_IMAGE=maven:3.5-jdk-11 | |
ARG RUNTIME_IMAGE=openjdk:11-jdk-slim | |
############################################################################################# | |
### Stage where Docker is pulling all maven dependencies ### | |
############################################################################################# | |
FROM ${BUILD_IMAGE} as dependencies | |
ARG PROXY_SET=false | |
ARG PROXY_HOST= |
[Update 2024] - Take a look at Drupal at your fingertips. Lot's of great stuff there.
// Load file object
$file = File::load($fid);
<?php | |
/** | |
* Set redis configuration. | |
*/ | |
/** @see: https://docs.platform.sh/frameworks/drupal8/redis.html */ | |
if (extension_loaded('redis')) { | |
// Set Redis as the default backend for any cache bin not otherwise specified. | |
// $settings['cache']['default'] = 'cache.backend.redis'; |
<?php | |
/** | |
* @file | |
* Contains Drupal\dmouse\Controller\SubRequestController. | |
* Generated by drupal/console. | |
*/ | |
namespace Drupal\dmouse\Controller; |
Snippet: [[SnippetName]] | |
Chunk: [[$ChunkName]] | |
System Setting: [[++SettingName]] | |
TV: [[*fieldName/TvName]] | |
Link tag: [[~PageId? ¶mName=`value`]] | |
Placeholder: [[+PlaceholderName]] | |
<?php |