This file contains hidden or 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 | |
cd /PATH/TO/SITE | |
echo "Pulling latest copy of master branch..." | |
git pull origin master | |
echo "Installing dependencies" | |
composer install | |
echo "Synchronizing configurations" | |
drush cim -y --verbose | |
echo "Rebuilding cache" |
This file contains hidden or 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
if (file_exists($app_root . '/' . $site_path . '/settings.local.php')) { | |
include $app_root . '/' . $site_path . '/settings.local.php'; | |
} |
This file contains hidden or 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
<?php | |
/** | |
* @codingStandardsIgnoreFile | |
*/ | |
/** | |
* Database configurations. | |
*/ | |
$databases['default']['default'] = array ( |
This file contains hidden or 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
version: 2 | |
jobs: | |
build: | |
docker: | |
- image: osseed/drupal8:7.2 | |
- image: circleci/mysql:5.7 | |
environment: | |
MYSQL_DATABASE: drupal | |
MYSQL_ROOT_USERNAME: root | |
MYSQL_ROOT_PASSWORD: root |
This file contains hidden or 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
<?php | |
$manager = \Drupal::service('features.manager'); | |
$module = 'MODULE_MACHINE_NAME'; | |
$feature = $manager->loadPackage($module, TRUE); | |
$config_to_create = [ | |
'CONFIG_NAME_1' => '', | |
'CONFIG_NAME_2' => '', | |
]; | |
// Import the configurations. |
This file contains hidden or 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
YAML | |
- | |
name: 'Parent 1' | |
children: | |
- | |
name: 'Child 1' | |
children: | |
- | |
name: 'Child 11' |
This file contains hidden or 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
* theme = "views_view_scroller", |
This file contains hidden or 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
<?php | |
/** | |
* @file | |
* Theme for My Scroller views. | |
*/ | |
/** | |
* Prepares variables for views scroller templates. | |
* |
This file contains hidden or 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
<?php | |
/** | |
* @file | |
* My Scroller Views module help and theme functions. | |
*/ | |
// Store Scroller preprocess theme functions in a separate .inc file. | |
\Drupal::moduleHandler()->loadInclude('my_scroller', 'inc', 'my_scroller.theme'); |
This file contains hidden or 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
public function buildOptionsForm(&$form, FormStateInterface $form_state) { | |
parent::buildOptionsForm($form, $form_state); | |
$form['height'] = array( | |
'#type' => 'textfield', | |
'#title' => $this->t('Height'), | |
'#description' => $this->t('Default height of header.'), | |
'#size' => '6', | |
'#default_value' => $this->options['height'], | |
'#required' => TRUE, |
NewerOlder