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 | |
| $post_update_registry = \Drupal::service('update.post_update_registry'); | |
| $modules = [ | |
| 'block', | |
| 'block_content', | |
| 'comment', | |
| 'contextual', | |
| 'datetime_range', | |
| 'dblog', |
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/src/ConfigSplitManager.php b/src/ConfigSplitManager.php | |
| index 575680e..a85a2f0 100644 | |
| --- a/src/ConfigSplitManager.php | |
| +++ b/src/ConfigSplitManager.php | |
| @@ -512,7 +512,7 @@ protected function getSplitStorage(ImmutableConfig $config, StorageInterface $tr | |
| } | |
| if ('folder' === $storage) { | |
| // Here we could determine to use relative paths etc. | |
| - $directory = $config->get('folder'); | |
| + $directory = \Drupal::getContainer()->getParameter('site.path') . '/' . $config->get('folder'); |
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/config_split.module b/config_split.module | |
| index 0cd7135..adcbb4b 100644 | |
| --- a/config_split.module | |
| +++ b/config_split.module | |
| @@ -9,6 +9,8 @@ | |
| use Drupal\Core\Form\FormStateInterface; | |
| use Drupal\Core\Link; | |
| use Drupal\Core\Routing\RouteMatchInterface; | |
| +use Drupal\Core\StreamWrapper\StreamWrapperManager; | |
| +use Drupal\config_split\Controller\ConfigDownloadController; |
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/src/Plugin/Field/FieldFormatter/ComputedStringFormatter.php b/src/Plugin/Field/FieldFormatter/ComputedStringFormatter.php | |
| index 36be5e9..697c3ba 100644 | |
| --- a/src/Plugin/Field/FieldFormatter/ComputedStringFormatter.php | |
| +++ b/src/Plugin/Field/FieldFormatter/ComputedStringFormatter.php | |
| @@ -57,9 +57,9 @@ class ComputedStringFormatter extends ComputedFormatterBase { | |
| protected function prepareValue($value) { | |
| if ($this->getSetting('sanitized')) { | |
| - return nl2br(Html::escape($value)); | |
| + return !empty($value) ? nl2br(Html::escape($value)) : $value; |
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/modules/checkout/config/schema/commerce_checkout.schema.yml b/modules/checkout/config/schema/commerce_checkout.schema.yml | |
| index 95d17db5..2acd96eb 100644 | |
| --- a/modules/checkout/config/schema/commerce_checkout.schema.yml | |
| +++ b/modules/checkout/config/schema/commerce_checkout.schema.yml | |
| @@ -78,6 +78,9 @@ commerce_checkout.commerce_checkout_pane.login: | |
| register_form_title: | |
| type: string | |
| label: 'Title For New Customer Form' | |
| + register_form_mode: | |
| + type: string |
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/modules/checkout/config/install/commerce_checkout.commerce_checkout_flow.default.yml b/modules/checkout/config/install/commerce_checkout.commerce_checkout_flow.default.yml | |
| index c350ab28..630c7852 100644 | |
| --- a/modules/checkout/config/install/commerce_checkout.commerce_checkout_flow.default.yml | |
| +++ b/modules/checkout/config/install/commerce_checkout.commerce_checkout_flow.default.yml | |
| @@ -11,6 +11,7 @@ configuration: | |
| login: | |
| allow_guest_checkout: true | |
| allow_registration: false | |
| + new_registration_mail: '' | |
| step: login |
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/modules/checkout/config/schema/commerce_checkout.schema.yml b/modules/checkout/config/schema/commerce_checkout.schema.yml | |
| index a3ae1bcf..680b8ef6 100644 | |
| --- a/modules/checkout/config/schema/commerce_checkout.schema.yml | |
| +++ b/modules/checkout/config/schema/commerce_checkout.schema.yml | |
| @@ -75,6 +75,9 @@ commerce_checkout.commerce_checkout_pane.login: | |
| register_form_title: | |
| type: string | |
| label: 'Title For New Customer Form' | |
| + register_form_mode: | |
| + type: string |
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/modules/checkout/src/Plugin/Commerce/CheckoutPane/Login.php b/modules/checkout/src/Plugin/Commerce/CheckoutPane/Login.php | |
| index 2bdc785b..b1908d91 100644 | |
| --- a/modules/checkout/src/Plugin/Commerce/CheckoutPane/Login.php | |
| +++ b/modules/checkout/src/Plugin/Commerce/CheckoutPane/Login.php | |
| @@ -282,6 +282,7 @@ class Login extends CheckoutPaneBase implements CheckoutPaneInterface, Container | |
| '#type' => 'email', | |
| '#title' => $this->t('Email address'), | |
| '#required' => FALSE, | |
| + '#weight' => -100, | |
| ]; |
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/src/WebformSubmissionListBuilder.php b/src/WebformSubmissionListBuilder.php | |
| index b684647ec..48cc91c43 100644 | |
| --- a/src/WebformSubmissionListBuilder.php | |
| +++ b/src/WebformSubmissionListBuilder.php | |
| @@ -1114,6 +1114,19 @@ class WebformSubmissionListBuilder extends EntityListBuilder { | |
| 'url' => $this->requestHandler->getUrl($entity, $this->sourceEntity, 'webform_submission.log'), | |
| ]; | |
| } | |
| + | |
| + if ($this->moduleHandler()->moduleExists('ban') && $this->currentUser->hasPermission('ban IP addresses')) { |
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 | |
| $password = 'blahblahblacksheep1'; | |
| $user = 'db_user'; | |
| $db_name = 'test'; | |
| $lines = file('drushrc.php'); | |
| foreach ($lines as $index => $line) { | |
| if (preg_match('/^\$options\[\'db_passwd\'\]\s*\=\s*\'.*?\'\s*\;/', $line)) { |