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/README.md b/README.md | |
index 7ab5cfb..9e2f44e 100644 | |
--- a/README.md | |
+++ b/README.md | |
@@ -18,7 +18,7 @@ Select translation also provides an API following the same selection algorithm a | |
Based on the drupal 7 code by Alexandru Croitor (Placinta) which includes a much | |
better Views filter handler that uses left joins instead of correlated | |
(dependent) sub-queries, which should prove to work much faster when there are | |
-a lot of nodes in the database. | |
+a lot of entities in the database. |
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/js/update-slots.js b/js/update-slots.js | |
index 041bcdf..8f02c35 100644 | |
--- a/js/update-slots.js | |
+++ b/js/update-slots.js | |
@@ -31,7 +31,7 @@ | |
Drupal.behaviors.vaa_update_slots = { | |
attach: function (context, settings) { | |
- $('.vaa-slots > div').once('vaa_init').each(function () { | |
+ $(once('vaa_init', '.vaa-slots > div', context)).each(function () { |
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/viewfield_argument_helper.module b/viewfield_argument_helper.module | |
index 48a9355..8b6a5b1 100644 | |
--- a/viewfield_argument_helper.module | |
+++ b/viewfield_argument_helper.module | |
@@ -27,7 +27,7 @@ function viewfield_argument_helper_help($route_name, RouteMatchInterface $route_ | |
/** | |
* Implements hook_field_widget_viewfield_select_form_alter(). | |
*/ | |
-function viewfield_argument_helper_field_widget_viewfield_select_form_alter(&$element, FormStateInterface $form_state, $context) { | |
+function viewfield_argument_helper_field_widget_single_element_viewfield_select_form_alter(&$element, FormStateInterface $form_state, $context) { |
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/viewfield_argument_helper.module b/viewfield_argument_helper.module | |
index 48a9355..defe0d1 100644 | |
--- a/viewfield_argument_helper.module | |
+++ b/viewfield_argument_helper.module | |
@@ -27,7 +27,7 @@ function viewfield_argument_helper_help($route_name, RouteMatchInterface $route_ | |
/** | |
* Implements hook_field_widget_viewfield_select_form_alter(). | |
*/ | |
-function viewfield_argument_helper_field_widget_viewfield_select_form_alter(&$element, FormStateInterface $form_state, $context) { | |
+function viewfield_argument_helper_field_widget_complete_viewfield_select_form_alter(&$element, FormStateInterface $form_state, $context) { |
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/viewfield_argument_helper.module b/viewfield_argument_helper.module | |
index 48a9355..0674bac 100644 | |
--- a/viewfield_argument_helper.module | |
+++ b/viewfield_argument_helper.module | |
@@ -27,7 +27,7 @@ function viewfield_argument_helper_help($route_name, RouteMatchInterface $route_ | |
/** | |
* Implements hook_field_widget_viewfield_select_form_alter(). | |
*/ | |
-function viewfield_argument_helper_field_widget_viewfield_select_form_alter(&$element, FormStateInterface $form_state, $context) { | |
+function viewfield_argument_helper_field_single_element_widget_viewfield_select_form_alter(&$element, FormStateInterface $form_state, $context) { |
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/embederator.theme.inc b/embederator.theme.inc | |
index 91df87e..4165143 100644 | |
--- a/embederator.theme.inc | |
+++ b/embederator.theme.inc | |
@@ -31,7 +31,9 @@ function template_preprocess_embederator(array &$variables) { | |
// Add the wrapper class from the entity config. | |
$entity_type = \Drupal::service('entity_type.manager')->getStorage('embederator_type')->load($bundle_id); | |
- $variables['wrapper_class'] = $entity_type->getWrapperClass(); | |
+ if (!is_null($entity_type)) { |
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/src/Plugin/Field/FieldFormatter/EmbederatorFormatter.php b/src/Plugin/Field/FieldFormatter/EmbederatorFormatter.php | |
index 25d669a..9e3f015 100644 | |
--- a/src/Plugin/Field/FieldFormatter/EmbederatorFormatter.php | |
+++ b/src/Plugin/Field/FieldFormatter/EmbederatorFormatter.php | |
@@ -36,6 +36,13 @@ class EmbederatorFormatter extends FormatterBase { | |
$type = $entity->getType(); | |
$embederator_type = $entity_manager->getStorage('embederator_type')->load($type); | |
+ $elements = []; | |
+ |
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/src/Plugin/Field/FieldFormatter/EmbederatorFormatter.php b/src/Plugin/Field/FieldFormatter/EmbederatorFormatter.php | |
index 25d669a..fcbe95b 100644 | |
--- a/src/Plugin/Field/FieldFormatter/EmbederatorFormatter.php | |
+++ b/src/Plugin/Field/FieldFormatter/EmbederatorFormatter.php | |
@@ -90,7 +90,7 @@ class EmbederatorFormatter extends FormatterBase { | |
]; | |
} | |
else { | |
- if ($embederator_type->getUseSsi()) { | |
+ if ($embederator_type && $embederator_type->getUseSsi()) { |
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/src/Routing/RouteSubscriber.php b/src/Routing/RouteSubscriber.php | |
index e13d151..0cab523 100644 | |
--- a/src/Routing/RouteSubscriber.php | |
+++ b/src/Routing/RouteSubscriber.php | |
@@ -76,7 +76,7 @@ class RouteSubscriber extends RouteSubscriberBase { | |
/** | |
* {@inheritdoc} | |
*/ | |
- public static function getSubscribedEvents() { | |
+ public static function getSubscribedEvents(): array { |
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 --cc commerce_vat.module | |
index 1d7c018,e5b2420..0000000 | |
--- a/commerce_vat.module | |
+++ b/commerce_vat.module | |
@@@ -311,44 -332,72 +327,47 @@@ function commerce_vat_rate_apply($vat_r | |
} | |
} | |
- // If a valid rate is specified... | |
- if (isset($rate_info['rate']) && is_numeric($rate_info['rate'])) { |