$block = \Drupal\block\Entity\Block::load('your_block_id');
$variables['block_output'] = \Drupal::entityTypeManager()
->getViewBuilder('block')
->view($block);$configuration = [];
$variables['block_output'] = \Drupal::service('plugin.manager.block')
->createInstance($plugin_id, $configuration)
->build();use Drupal\field\Entity\FieldStorageConfig;
use Drupal\field\Entity\FieldConfig;
$bundles = ['user'];
$fields['user_picture'] = [
'type' => 'image',
'entity_type' => 'user',
'bundle' => 'user',use Drupal\field\Entity\FieldStorageConfig;
use Drupal\field\Entity\FieldConfig;
$bundles = ['user'];
$fields['user_picture'] = [
'entity_type' => 'user',
];| (function ($, Drupal, window, document) { | |
| 'use strict'; | |
| var pluginName = 'uxFormInput'; | |
| function Plugin(element, options) { | |
| this.element = element; | |
| this._name = pluginName; |
| #!/bin/bash | |
| set -e | |
| #Set fonts for Help. | |
| NORM=`tput sgr0` | |
| BOLD=`tput bold` | |
| REV=`tput smso` | |
| SSL_PATH="${HOME}/Sites/ssl" |
This Gist is a collection of configuration files that can be used to easily setup a Homebrew-based LEMP stack on Mac OS X.
Files in this repository are numbered and named for ordering purposes only. At the top of each file is a section of metadata that denote what component the file belongs to and the default name & location of the file. Feel free to implement it however you want.
Note: some configuration files have hard-coded paths to my user directory -- fix it for your setup
Audit this entire codebase for materially useful simplifications in its data structures, state representation, control flow, algorithms, and ownership.
This is an audit-only exercise. Do not edit files, run tests, implement recommendations, commit, or push. Read-only inspection commands are allowed.
You are the coordinator. Continue until the complete codebase has been reviewed and the final audit is validated.
- Establish the coverage contract
Inspect the repository and inventory every identifiable subsystem.