Review of #8.

+++ b/hypothesis.module
@@ -2,80 +2,73 @@
+ foreach ($default...

Contribution Date
Technology
Contribution Project
Contribution Details

Review of #8.

  1. +++ b/hypothesis.module @@ -2,80 +2,73 @@ + foreach ($default_behaviors as $key => $default_behavior) {

    Remove this. As we have defined config for this which has the default values I believe, so no need to re-iterate.

  2. +++ b/hypothesis.module @@ -2,80 +2,73 @@ + $attachments['#attached']['drupalSettings']['hypothesis'] = $default_behaviors;

    Replace $default_behaviors with $config->get('behavior');
    And remove this $default_behaviors = $config->get('behavior');

Contribution Author
Files count
0
Patches count
0