If something else tries to decorate the resource type repository, this module currently makes it impossible to support further decoration since it extends the base class and doesn't call the wrapped service.

Comments

mglaman created an issue. See original summary.

mglaman’s picture

StatusFileSize
new7.23 KB

This seems to make it possible to decorate the core resource type repository and still use the cross bundles module.

mglaman’s picture

Status: Active » Needs review
mglaman’s picture

StatusFileSize
new7.35 KB
mglaman’s picture

StatusFileSize
new7.9 KB
mglaman’s picture

StatusFileSize
new9.26 KB

Adding a patch which fixes unrelated public path rename, will split out into its own issue.

mglaman’s picture

mglaman’s picture

StatusFileSize
new7.41 KB
+++ b/src/ResourceType/CrossBundleResourceTypeRepository.php
@@ -3,14 +3,93 @@
+  /**
+   * {@inheritdoc}
+   *
+   * @todo fix regression from https://www.drupal.org/project/drupal/issues/3034786
+   */
+  public function getByTypeName($type_name) {
...
+  /**
+   * {@inheritdoc}
+   *
+   * @todo fix regression from https://www.drupal.org/project/drupal/issues/3034786
+   */
+  public function get($entity_type_id, $bundle) {

This isn't needed in this patch.

Status: Needs review » Needs work

The last submitted patch, 8: 3109870-8.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

mglaman’s picture

Status: Needs work » Needs review
StatusFileSize
new8.16 KB

Prime the resource types in the test.

  • mglaman committed d5ec002 on 8.x-1.x
    Issue #3109870 by mglaman: Instead of extending the base class, call `...
mglaman’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.