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 blt() { | |
if [[ ! -z ${AH_SITE_ENVIRONMENT} ]]; then | |
PROJECT_ROOT="/var/www/html/${AH_SITE_GROUP}.${AH_SITE_ENVIRONMENT}" | |
elif [ "`git rev-parse --show-cdup 2> /dev/null`" != "" ]; then | |
PROJECT_ROOT=$(git rev-parse --show-cdup) | |
else | |
PROJECT_ROOT="." | |
fi | |
if [ -f "$PROJECT_ROOT/vendor/bin/blt" ]; then |
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 | |
/** ====================================================================== */ | |
// Create table if not available. | |
db_query("CREATE TABLE IF NOT EXISTS {lock_test} ( | |
id int NOT NULL AUTO_INCREMENT PRIMARY KEY, | |
random_id int, | |
request_time varchar(50), | |
first_request_time varchar(50) |
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 | |
namespace Drupal\module\Helper; | |
use Drupal\Core\Entity\EntityInterface; | |
use Drupal\Core\Entity\EntityTypeManagerInterface; | |
use Drupal\Core\Logger\LoggerChannelInterface; | |
use Drupal\paragraphs\Entity\Paragraph; | |
/** |
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 | |
namespace Drupal\custom_migrate\Plugin\migrate_plus\data_parser; | |
use Drupal\migrate_plus\Plugin\migrate_plus\data_parser\Json; | |
/** | |
* Obtain JSON data for migration. | |
* | |
* @DataParser( |
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
{ | |
data: [ | |
{ | |
id: 1 | |
scope: [ | |
[ | |
{ | |
"key": "type", | |
"value": "1" | |
}, |
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
diff --git a/owl.carousel.js b/owl.carousel.js | |
index 4d37ffb9ca..3c1d6cfc92 100755 | |
--- a/owl.carousel.js | |
+++ b/owl.carousel.js | |
@@ -868,7 +869,22 @@ | |
if (delta.x !== 0 && this.is('dragging') || !this.is('valid')) { | |
this.speed(this.settings.dragEndSpeed || this.settings.smartSpeed); | |
- this.current(this.closest(stage.x, delta.x !== 0 ? direction : this._drag.direction)); | |
+ |
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 | |
* Contains install, update, uninstall hooks for module. | |
*/ | |
use Drupal\field\Entity\FieldConfig; | |
/** |
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 | |
/** | |
* Update status field. | |
*/ | |
function comment_update_8300() { | |
$entity_definition_update_manager = \Drupal::service('entity.definition_update_manager'); | |
$field_definition = $entity_definition_update_manager->getFieldStorageDefinition('status', 'comment'); | |
$field_definition->setDescription(new TranslatableMarkup('A boolean indicating the published state.')) | |
->setRevisionable(TRUE); |
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 | |
* Contains install, update, uninstall hooks for mymodule module. | |
*/ | |
/** | |
* Implements hook_update_N(). | |
* |
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
#!/usr/bin/env bash | |
set -e | |
# This script can be configured by specifying different environment variables in | |
# your .gitlab-ci.yml file's invocation of the script. If those are omitted, as | |
# in this example, the defaults below and throughout the script should be used. | |
# Check basic requirements from Config. | |
if [ -z "$PLATFORM_PROJECT_ID" ]; then | |
echo "PLATFORM_PROJECT_ID is required, please contact support if you don't know how to do it." |
NewerOlder