Run the following:
$ pod repo remove master
$ pod setup
$ pod install
| # Local development services. | |
| # | |
| # To activate this feature, follow the instructions at the top of the | |
| # 'example.settings.local.php' file, which sits next to this file. | |
| services: | |
| cache.backend.null: | |
| class: Drupal\Core\Cache\NullBackendFactory | |
| parameters: | |
| twig.config: | |
| debug: true |
| <?php | |
| /** | |
| * @file | |
| * Local development override configuration feature. | |
| * | |
| * To activate this feature, copy and rename it such that its path plus | |
| * filename is 'sites/default/settings.local.php'. Then, go to the bottom of | |
| * 'sites/default/settings.php' and uncomment the commented lines that mention | |
| * 'settings.local.php'. |
| {% for key, child in element if key|first != '#' %} | |
| <div>{{ child }}</div> | |
| {% endfor %} |
| <?php | |
| use Drupal\field\Entity\FieldConfig; | |
| $info = FieldConfig::loadByName($entity_type, $bundle, $field_name); | |
| <?php | |
| use Drupal\user\RoleInterface; | |
| // Allow anonymous and authenticated users to access contact form. | |
| user_role_grant_permissions(RoleInterface::ANONYMOUS_ID, array('access site-wide contact form')); | |
| user_role_grant_permissions(RoleInterface::AUTHENTICATED_ID, array('access site-wide contact form')); |
| <?php | |
| /** | |
| * Implements hook_forms(). | |
| */ | |
| function node_ajax_loader_forms($form_id, $args) { | |
| $forms = array(); | |
| if (strncmp($form_id, 'node_ajax_loader_form_', 22) === 0) { | |
| $forms[$form_id] = array('callback' => 'node_ajax_loader_form'); | |
| } |
| Download and enable radix: drush en radix -y; drush vset theme_default radix | |
| Create a subtheme: drush cc all; drush radix "Subtheme" | |
| Set default theme: drush en subtheme -y; drush vset theme_default subtheme | |
| Install required modules: cd /path/to/subtheme; npm run setup | |
| Update browserSyncProxy in /path/to/subtheme/config.json | |
| Watch: gulp |
Run the following:
$ pod repo remove master
$ pod setup
$ pod install