Install iTerm 2
Download, unzip and drag to your Applications directory.
https://www.iterm2.com/downloads.html
# https://www.ionos.com/community/hosting/php/using-php-composer-in-11-ionos-webhosting-packages/ | |
php -v | |
# PHP 4.4.9 (cgi-fcgi) (built: Nov 7 2018 13:27:00) | |
# Copyright (c) 1997-2008 The PHP Group | |
# Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies | |
/usr/bin/php7.1-cli -v | |
# PHP 7.1.25 (cli) (built: Dec 10 2018 10:11:36) ( NTS ) | |
# Copyright (c) 1997-2018 The PHP Group |
Download, unzip and drag to your Applications directory.
https://www.iterm2.com/downloads.html
<?php | |
// How to create horizontal tabs programmatically in Drupal 8, requires Field Group module | |
$form = array(); | |
$form['my_field'] = array( | |
'#type' => 'horizontal_tabs', | |
'#tree' => TRUE, | |
'#prefix' => '<div id="unique-wrapper">', | |
'#suffix' => '</div>', | |
); | |
$items = array( |
var gulp = require('gulp'), | |
sass = require('gulp-sass'), | |
rename = require('gulp-rename'), | |
cssmin = require('gulp-cssnano'), | |
prefix = require('gulp-autoprefixer'), | |
plumber = require('gulp-plumber'), | |
notify = require('gulp-notify'), | |
sassLint = require('gulp-sass-lint'), | |
sourcemaps = require('gulp-sourcemaps'); | |
// Temporary solution until gulp 4 |
// Requires Gulp v4. | |
// $ npm uninstall --global gulp gulp-cli | |
// $ rm /usr/local/share/man/man1/gulp.1 | |
// $ npm install --global gulp-cli | |
// $ npm install | |
const { src, dest, watch, series, parallel } = require('gulp'); | |
const browsersync = require('browser-sync').create(); | |
const sass = require('gulp-sass'); | |
const autoprefixer = require('gulp-autoprefixer'); | |
const sourcemaps = require('gulp-sourcemaps'); |
<?php | |
namespace Drupal\mymodule\Plugin\Block; | |
use Drupal\Core\Block\BlockBase; | |
use Drupal\Core\Form\FormStateInterface; | |
use Drupal\Core\Plugin\ContainerFactoryPluginInterface; | |
use Drupal\file\Entity\File; | |
use Drupal\file\FileUsage\FileUsageInterface; | |
use Symfony\Component\DependencyInjection\ContainerInterface; |
https://download.docker.com/mac/stable/Docker.dmg
Open the Terminal app and execute the following command.
<?php | |
/** | |
* @file | |
* Contains \Drupal\hello_world\Form\AddAnotherItem. | |
*/ | |
namespace Drupal\hello_world\Form; | |
use Drupal\Core\Form\FormBase; | |
use Drupal\Core\Form\FormStateInterface; |
drush generate plugin-field-formatter |