$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');
#!/usr/bin/env bash | |
: Setup environment | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
if [[ "${TRACE-0}" == "1" ]]; then | |
set -o xtrace | |
fi |
\Drupal::entityTypeManager()->getStorage('node')->loadByProperties(['type' => 'content_type', 'status' => 1]); |
I hereby claim:
To claim this, I am signing this object: