Hi,
While working with parent issue, I have noticed .install file with hook_schema() implementation. This issue: https://www.drupal.org/node/2780205
I don't like this way of implementation. We should create a configuration entity type for shield page instead. What do you think about it?

I've prepared a simple patch, which provides necessary components for this. It would be great to commit it, and then continue other issues (i.e. add/edit/delete shield page).

Patch is attached (this is a template for configuration entity only).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alan-ps created an issue. See original summary.

alan-ps’s picture

Status: Active » Needs review

Any remarks are welcome :)

alan-ps’s picture

Assigned: Unassigned » alan-ps
Status: Needs review » Needs work

The patch need a little bit more work. I will post final variant a little bit late.

alan-ps’s picture

Assigned: alan-ps » Unassigned
Status: Needs work » Needs review
FileSize
7.66 KB
50.38 KB

This is a patch (and appropriate screenshot which shows us what this patch do ("add shield page" feature will be added in the parent issue)).

It provides configuration entity type for shield pages. I don't add any management pages (except list (default)), because there are another issues for this. After this patch will be committed, we can start management page issues (i.e. parent issue (add), 2780217 (edit), 2780221 (delete)).

naveenvalecha’s picture

Priority: Major » Normal
Status: Needs review » Reviewed & tested by the community

Awesome work!
Looks ready to go.
Could you update the title and description of the followup tasks
#2780217: Add edit management page for shield page configurable.
#2780221: Add delete management page for shield page configurable.

Also add a follow issue for tests as well.

naveenvalecha’s picture

Title: Creating a configuration entity type for shield page. » Create configuration entity type for shield page
naveenvalecha’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to 8.x-1.x

  • naveenvalecha committed 04e1290 on 8.x-1.x authored by alan-ps
    Issue #2781637 by alan-ps, naveenvalecha: Create configuration entity...
naveenvalecha’s picture

Category: Feature request » Task

Status: Fixed » Closed (fixed)

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