Skip to content

Commit

Permalink
Merge pull request #2 from iqual-ch/issue/US-1617_d10-upgrade
Browse files Browse the repository at this point in the history
Drupal 10 upgrade
  • Loading branch information
Philippe von Bergen authored Nov 1, 2023
2 parents 21458d0 + f6c8e40 commit 7606a3d
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 13 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@
Module that provides progressive decoupling for drupal 8 with ui patterns.
Uses twigjs (https://github.com/twigjs/twig.js) for rendering in browser.

Includes **DecoupledBlockBase**: A block base class to be used for creating block plugins that make use of decoupling. It provides pattern selection for each block instance and stores pattern-related data (e.g. its twig code) into drupalSettings to make it accessible in the frontend.
Includes **DecoupledBlockBase**: A block base class to be used for creating
block plugins that make use of decoupling. It provides pattern selection for
each block instance and stores pattern-related data (e.g. its twig code) into
drupalSettings to make it accessible in the frontend.


**Submodules**
- iq_progressive_decoupler_rest_block
A block that asynchronously loads data from a REST endpoint and renders with a pattern
A block that asynchronously loads data from a REST endpoint and renders with
a pattern
2 changes: 1 addition & 1 deletion iq_progressive_decoupler.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ name: iqual progressive decoupler
description: Provides progressive decoupling for drupal with ui patterns.
package: Custom
type: module
core_version_requirement: ^9.5 || ^10
core_version_requirement: ^9.5 || ^10
dependencies:
- drupal:rest
3 changes: 0 additions & 3 deletions iq_progressive_decoupler.libraries.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
initialize:
version: VERSION
css:
theme:
resources/css/base.css: {}
js:
//cdnjs.cloudflare.com/ajax/libs/twig.js/0.8.9/twig.min.js: { type: external, minified: true }
resources/js/twig-functions.js: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: iqual progressive decoupler rest block
description: REST Block for decoupling
package: Custom
type: module
core_version_requirement: ^8.8 || ^9
core_version_requirement: ^9.5 || ^10
dependencies:
- iq_progressive_decoupler:iq_progressive_decoupler
- drupal:hal
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ rest-block:
version: VERSION
js:
resources/js/init-rest-block.js: {}
dependencies:
- iq_progressive_decoupler/frontend-rendering

1 change: 0 additions & 1 deletion resources/css/base.css

This file was deleted.

6 changes: 3 additions & 3 deletions src/Plugin/Block/DecoupledBlockBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

namespace Drupal\iq_progressive_decoupler\Plugin\Block;

use Drupal\Component\Serialization\Yaml;
use Drupal\Component\Serialization\Yaml as YamlSerializer;
use Drupal\Core\Block\BlockBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\ui_patterns\UiPatternsManager;
use Drupal\Component\Serialization\Yaml;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\Yaml\Yaml as YamlParser;
use Drupal\Component\Serialization\Yaml as YamlSerializer;

/**
* Base block for decoupling.
Expand Down

0 comments on commit 7606a3d

Please sign in to comment.