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
{ | |
"order_item_id": [ | |
{ | |
"value": 38 | |
} | |
], | |
"uuid": [ | |
{ | |
"value": "83c77502-2a8e-4826-b68c-080737e99d49" | |
} |
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
diff --git a/modules/custom/es_data/es_data.module b/modules/custom/es_data/es_data.module | |
index cb543233..af8d7ace 100644 | |
--- a/modules/custom/es_data/es_data.module | |
+++ b/modules/custom/es_data/es_data.module | |
@@ -229,6 +229,22 @@ function es_data_commerce_store_presave(EntityInterface $entity) { | |
]; | |
$entity->set('address', [$default_addresss]); | |
} | |
+ | |
+ $platforms_available = ['facebook', 'flickr', 'googleplus', 'instagram', 'linkedin', 'pinterest', 'twitter', 'vimeo', 'whatsapp', 'youtube', 'youtube_channel']; |
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
{ | |
"took" : 0, | |
"timed_out" : false, | |
"_shards" : { | |
"total" : 1, | |
"successful" : 1, | |
"skipped" : 0, | |
"failed" : 0 | |
}, | |
"hits" : { |
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
diff --git a/modules/contrib/commerce/modules/store/src/Entity/Store.php b/modules/contrib/commerce/modules/store/src/Entity/Store.php | |
index 9a570a32..ef7b8e6d 100644 | |
--- a/modules/contrib/commerce/modules/store/src/Entity/Store.php | |
+++ b/modules/contrib/commerce/modules/store/src/Entity/Store.php | |
@@ -2,6 +2,8 @@ | |
namespace Drupal\commerce_store\Entity; | |
+use Drupal\Core\Entity\EntityPublishedTrait; | |
+use Drupal\Core\Entity\EntityChangedTrait; |
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
$ eksctl create cluster \ | |
--name drupal-eks \ | |
--version 1.16 \ | |
--region us-east-1 \ | |
--nodegroup-name standard-workers \ | |
--node-type t3.micro \ | |
--nodes 2 \ | |
--nodes-min 1 \ | |
--nodes-max 2 \ | |
--ssh-access \ |
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
ab -n 1000 -c 200 -k -H "Accept-Encoding: gzip, deflate" https://voyager.neptunenow.com/auth/login | |
This is ApacheBench, Version 2.3 <$Revision: 1826891 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking voyager.neptunenow.com (be patient) | |
Completed 100 requests | |
Completed 200 requests | |
Completed 300 requests | |
Completed 400 requests |
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
/** | |
* Implements hook_views_pre_render(). | |
*/ | |
function example_views_pre_render(&$view) { | |
$deals_view = array('deals', 'previous_deals'); | |
if (in_array($view->name, $deals_view)) { | |
drupal_add_js(drupal_get_path('module', 'td_deals') . '/td_deals.js'); | |
$contextual_module_path = drupal_get_path('module', 'contextual'); | |
drupal_add_js($contextual_module_path . '/contextual.js'); | |
drupal_add_css($contextual_module_path . '/contextual.css'); |
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 | |
/** | |
* Initializes the session handler, starting a session if needed. | |
*/ | |
function drupal_session_initialize() { | |
global $user, $is_https; | |
session_set_save_handler('_drupal_session_open', '_drupal_session_close', '_drupal_session_read', '_drupal_session_write', '_drupal_session_destroy', '_drupal_session_garbage_collection'); | |
// We use !empty() in the following check to ensure that blank session IDs |
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 | |
/** | |
* Implement hook_block_view(). | |
*/ | |
function textsize_block_view($delta = '') { | |
$textsize_cookie_expires = textsize_cookie_expires($mode = 'php'); | |
$textsize_cookie_domain = variable_get('textsize_cookie_domain', base_path()); | |
$block_title = textsize_block_title($title = 'title'); | |
$textsize_normal = variable_get('textsize_normal', 76); | |
$textsize_increment = variable_get('textsize_increment', 6); |