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 | |
#locate the script in the themes folder | |
cd docroot/themes/custom | |
themes=$(find . -type d -maxdepth 1) | |
for theme in "${themes[@]}"; do | |
echo "Checking theme $theme\n" | |
if [ ! -e "$theme/gulpfile.js" ];then | |
cd $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
#!/bin/bash | |
#locate the script in the themes folder | |
cd docroot/themes/custom | |
themes=$(find . -type d -maxdepth 1) | |
for theme in "${themes[@]}"; do | |
echo "Checking theme $theme\n" | |
if [ ! -e "$theme/node_modules" ];then | |
cd $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
(function ($, Drupal, drupalSettings) { | |
Drupal.behaviors.LotusBehavior = { | |
attach: function (context, settings) { | |
// can access setting from 'drupalSettings'; | |
var lotusHeight = drupalSettings.lotus.lotusJS.lotus_height; | |
$('lotusElement').css('height', lotusHeight); | |
} | |
}; | |
})(jQuery, Drupal, drupalSettings); |
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
lotus-js: | |
version: 1.x | |
js: | |
js/lotus.js: {} | |
dependencies: | |
- core/jquery |
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
/** | |
* @file | |
* Contains \Drupal\lotus\Controller\LotusController. | |
*/ | |
namespace Drupal\lotus\Controller; | |
use Drupal\Core\Controller\ControllerBase; | |
class LotusController extends ControllerBase { |