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',
];
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
#Set fonts for Help. | |
NORM=`tput sgr0` | |
BOLD=`tput bold` | |
REV=`tput smso` | |
SSL_PATH="${HOME}/Sites/ssl" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function ($, Drupal, window, document) { | |
'use strict'; | |
var pluginName = 'uxFormInput'; | |
function Plugin(element, options) { | |
this.element = element; | |
this._name = pluginName; |
$configuration = [];
$variables['block_output'] = \Drupal::service('plugin.manager.block')
->createInstance($plugin_id, $configuration)
->build();
$block = \Drupal\block\Entity\Block::load('your_block_id');
$variables['block_output'] = \Drupal::entityTypeManager()
->getViewBuilder('block')
->view($block);