DrupalConsole
DrupalCI: Modernizing Testbot Initiative
The Terra App
Drocker
WebProfiler
Ladybug
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
#Bash or Zsh: Add this line to your shell configuration file: | |
source "$HOME/.console/console.rc" 2>/dev/null | |
#Fish: Create a symbolic link | |
ln -s ~/.console/drupal.fish ~/.config/fish/completions/drupal.fish | |
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
<?php | |
function name_theme_preprocess_page() { | |
// ... | |
$variables['social_networks'] = theme_get_setting('social_networks', 'name_theme'); | |
} |
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
if Vagrant.has_plugin?('vagrant-exec') | |
config.exec.commands '*', directory: '/var/www/drupal' | |
end | |
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
drupal chain --file=~/.console/chain/quick-start-mysql.yml | |
Drupal 8 has changed a lot and the process of creating, building, testing and deploying a site is not the exception.
During this session, you will understand the process of creating, building, testing and deploying Drupal 8 sites, and learn which tools you can use to improve your local development workflow and reduce project setup and onboarding time, implement automated analysis tools for code review, code coverage and finally how to build an artifact and deploy your project.
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
<?php | |
/** | |
* Update the length of a text field which already contains data. | |
* | |
* @param string $entity_type_id | |
* @param string $field_name | |
* @param integer $new_length | |
*/ | |
function _module_change_text_field_max_length ($entity_type_id, $field_name, $new_length) { |
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
<?php | |
/** | |
* Update field data table and configuration storage | |
*/ | |
function _update_field_data( | |
$entityType, | |
$field, | |
$valueMapping, |