Quick review on patch #4:
Add a new "add block" checkbox for a facet in the form and the config and only show the facet in the available contexts (\Drupal\facetapi\ContextProvider\FacetContextProvider::getAvailableContexts
) when the add block checkbox is active.
This needs changes in:
- \Drupal\facetapi\ContextProvider\FacetContextProvider::getAvailableContexts
- facetapi\config\schema\facetapi.facet.schema.yml
- \Drupal\facetapi\Form\FacetForm
Maybe the check for deletion can be simplified in isFacetUsedBlock
in \Drupal\facetapi\Form\FacetDeleteConfirmForm
.
Comment | File | Size | Author |
---|---|---|---|
#4 | 2596331-add-message-only.patch | 2.02 KB | borisson_ |
#2 | add_a_add_block-2596331-2.patch | 4.38 KB | borisson_ |
Comments
Comment #2
borisson_Added a patch
Comment #3
borisson_There is no additional overhead to just having the context offer all possible facets to the block UI, so I'm not sure if we should include this.
I'd prefer not to have this patch in because it adds unneeded ties to the block system and I don't think the additional overhead created by having all facets returned from
\Drupal\facetapi\FacetContextProvider::getAvailableContexts
is enough to include this.Comment #4
borisson_I think it should be sufficient to just add a message about this in the UI, see attached patch.
Comment #5
borisson_It looks like @StryKaizer agrees with the patch in #4 but we'll probably have to rewrite it a bit.
This is from a conversation in irc before StryKaizer got distracted.
Setting this issue to NW, someone can rephrase the message in from the patch in #4.
Comment #6
Novitsh CreditAttribution: Novitsh at Colruyt Group Services commentedShould we not go for the :placeholder instead of @placeholder as marked in https://www.drupal.org/node/2571689 ?
Comment #7
borisson_Made the change as remarked by @Novitsh in #6. We can always change the text later.