Currently restrictions are available only as high up as layouts. Allow restrictions based on field name and content type as well.
Issue fork layout_paragraphs_restrictions-3500389
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
sethhill commentedThis MR adds some additional contexts that can be evaluated against:
field_name: the Paragraphs reference fieldentity_type: the entity type (node, taxonomy term, etc.)entity_bundle: the entity bundle (content type, etc.)It also modifies the application of restrictions such that all contexts are required to match in order for any restriction to apply. This allows setting granular or broad restrictions, depending on the combination.
For example:
Will only match on the root level of the field_me_test_content field when it is on a node of type me_test_ct. All other instances of that field will not be restricted.
Comment #4
sethhill commentedComment #7
sethhill commented