$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');
| <?php | |
| declare(strict_types=1); | |
| namespace App\Adapter\Symfony\Command; | |
| use Sulu\Bundle\PageBundle\Document\HomeDocument; | |
| use Sulu\Bundle\PageBundle\Document\PageDocument; | |
| use Sulu\Component\Content\Types\ResourceLocator\Strategy\ResourceLocatorStrategyPoolInterface; | |
| use Sulu\Component\DocumentManager\DocumentManagerInterface; |
| /* Adapted from Tom Cunningham's 'Data Warehousing with MySql' (www.meansandends.com/mysql-data-warehouse) */ | |
| ###### small-numbers table | |
| DROP TABLE IF EXISTS numbers_small; | |
| CREATE TABLE numbers_small (number INT); | |
| INSERT INTO numbers_small VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9); | |
| ###### main numbers table | |
| DROP TABLE IF EXISTS numbers; | |
| CREATE TABLE numbers (number BIGINT); |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |