Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Grimreaper created an issue. See original summary.

Grimreaper’s picture

Assigned: Unassigned » Grimreaper

I have done a basic test with block_field-8.x-1.0-alpha8.

With block plugin it works but when the block plugin is from a block entity the block entity is not imported automatically (because it is not an entity reference field).

I will set up test for at least block plugin.

And then see how to be able to import automatically block content. I think either a field enhancer plugin or adding a new event to alter field values.

Grimreaper’s picture

JSON output:

               "field_es_test_block": [
                    {
                        "plugin_id": "system_powered_by_block",
                        "settings": {
                            "id": "system_powered_by_block",
                            "label": "Powered by Drupal",
                            "provider": "system",
                            "label_display": "visible"
                        }
                    },
                    {
                        "plugin_id": "block_content:516a333e-bac0-4c71-99ec-56ceb02efdf1",
                        "settings": {
                            "id": "block_content:516a333e-bac0-4c71-99ec-56ceb02efdf1",
                            "label": "aaaa",
                            "provider": "block_content",
                            "label_display": "visible",
                            "status": true,
                            "info": "",
                            "view_mode": "full"
                        }
                    }
                ],
Grimreaper’s picture

Status: Active » Needs review
FileSize
28.83 KB

Here is a patch that import automatically block content if a field enhancer is used on the server website.

  • Grimreaper authored 68d8ff1 on 8.x-2.x
    Issue #3064331 by Grimreaper: Compatibility with block field
    
Grimreaper’s picture

Assigned: Grimreaper » Unassigned
Status: Needs review » Fixed
Grimreaper’s picture

Status: Fixed » Needs work

After rethough, maybe an unset in the field enhancer plugin will be required. And no need of the event to go get the block content.

Grimreaper’s picture

Status: Needs work » Needs review
FileSize
1.03 KB

  • Grimreaper authored b531cc3 on 8.x-2.x
    Issue #3064331 by Grimreaper: The block field enhancer should remove its...
Grimreaper’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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