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
# https://www.drupal.org/docs/8/modules/bamboo-twig/usage | |
Bamboo Twig has a lot of advantages and brings a lot of new features to the Twig landscape of Drupal 8. | |
It boosts performance by using lazy loading, improves the code quality with automated workflow. | |
It's excepted that Bamboo Twig will normalize the way you use twig in your Drupal project reducing the need to install a bunch of extra modules. | |
Internationalization |
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
<dl class="examples"> | |
{# This accepts views arguments as well. #} | |
<dt>View:</dt> | |
<dd>{{ drupal_view('who_s_new', 'block_1') }}</dd> | |
{# The block should be configured on "admin/structure/block" page. #} | |
<dt>Block:</dt> | |
<dd>{{ drupal_block('system_powered_by_block') }}</dd> |
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
# To dump only the available variable keys use: | |
{{ dump(_context|keys) }} | |
<ol> | |
{% for key, value in _context %} | |
<li>{{ key }}</li> | |
{% endfor %} | |
</ol> |
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
# Disable Drupal module | |
drush pm_uninstall module_name |
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
# 1. Ensure the local copy is using a sites/default/settings.local.php, and that it is being included by the sites/default/settings.php file. | |
# 2. Copy sites/development.services.yml to sites/default/services.yml. The services.yml file is ignored by Git by default, and contains environment-specific settings. | |
# 3. Ensure the permission of the sites/default/services.yml file allow you to read/write, as when you run Drupal cConsole's "site:mode" command, the file will be modified. | |
# 4. Run Drupal Console's "site:mode" command to put the site in development mode. | |
drupal site:mode dev |
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
drush cache-rebuild |
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
drush config-export |