Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LOOP-999: Added modules, entity_usage and Entity Reference Integrity #163

Merged
merged 3 commits into from
Jul 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
"drupal/date_popup": "^1.1",
"drupal/diff": "^1.0",
"drupal/entity_print": "^2.2",
"drupal/entity_reference_integrity": "^1.0",
"drupal/entity_usage": "^2.0@beta",
"drupal/facets": "^1.7",
"drupal/field_group": "^3.1",
"drupal/flag": "^4.0@beta",
Expand Down
119 changes: 118 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions config/sync/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ module:
dynamic_page_cache: 0
editor: 0
entity_print: 0
entity_reference_integrity: 0
entity_reference_integrity_enforce: 0
entity_reference_revisions: 0
entity_usage: 0
facets: 0
field: 0
field_group: 0
Expand Down
50 changes: 50 additions & 0 deletions config/sync/entity_reference_integrity_enforce.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
enabled_entity_type_ids:
media: media
action: '0'
search_api_autocomplete_search: '0'
base_field_override: '0'
block: '0'
comment: '0'
comment_type: '0'
node: '0'
language_content_settings: '0'
node_type: '0'
menu_link_content: '0'
date_format: '0'
os2loop_document_collection_item: '0'
entity_form_display: '0'
entity_view_display: '0'
facets_facet: '0'
facets_facet_source: '0'
field_config: '0'
field_storage_config: '0'
file: '0'
flag: '0'
flagging: '0'
entity_form_mode: '0'
image_style: '0'
configurable_language: '0'
media_type: '0'
menu: '0'
message: '0'
message_template: '0'
paragraph: '0'
paragraphs_type: '0'
pathauto_pattern: '0'
print_engine: '0'
rest_resource_config: '0'
user_role: '0'
search_api_index: '0'
search_api_server: '0'
search_api_task: '0'
taxonomy_term: '0'
taxonomy_vocabulary: '0'
editor: '0'
filter_format: '0'
theme_switcher_rule: '0'
path_alias: '0'
user: '0'
view: '0'
entity_view_mode: '0'
_core:
default_config_hash: 8gwG5hTvIhM_TZyyG2_Vdl7g63M1Rp8-t4jtTcE2vdk
26 changes: 26 additions & 0 deletions config/sync/entity_usage.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
track_enabled_base_fields: false
local_task_enabled_entity_types:
- media
usage_controller_items_per_page: 25
_core:
default_config_hash: AXUBMTvVtpcNp0jKjDaWjSHqMy6HjuUf7j4yVbXgazI
track_enabled_source_entity_types:
- comment
- node
- user
track_enabled_target_entity_types:
- media
- user
edit_warning_message_entity_types: { }
delete_warning_message_entity_types: { }
track_enabled_plugins:
- dynamic_entity_reference
- media_embed
- link
- linkit
- layout_builder
- entity_reference
- entity_embed
- html_link
- block_field
site_domains: { }
1 change: 1 addition & 0 deletions config/sync/user.role.os2loop_user_administrator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ permissions:
- 'access content'
- 'access content overview'
- 'access contextual links'
- 'access entity usage statistics'
- 'access media browser'
- 'access media overview'
- 'access own authorizations'
Expand Down
68 changes: 68 additions & 0 deletions config/sync/views.view.media.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dependencies:
- image.style.thumbnail
- taxonomy.vocabulary.os2loop_media_library
module:
- entity_usage
- image
- media
- taxonomy
Expand Down Expand Up @@ -634,6 +635,63 @@ display:
entity_type: media
entity_field: changed
plugin_id: field
count:
id: count
table: entity_usage
field: count
relationship: media_to_usage_entity
group_type: group
admin_label: ''
label: 'Usage count'
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
set_precision: false
precision: 0
decimal: .
separator: ''
format_plural: false
format_plural_string: !!binary MQNAY291bnQ=
prefix: ''
suffix: ''
plugin_id: numeric
operations:
id: operations
table: media
Expand Down Expand Up @@ -1034,6 +1092,16 @@ display:
entity_type: media
entity_field: uid
plugin_id: standard
media_to_usage_entity:
id: media_to_usage_entity
table: media
field: media_to_usage_entity
relationship: none
group_type: group
admin_label: 'Usage information (Media)'
required: false
entity_type: media
plugin_id: standard
arguments: { }
display_extenders: { }
filter_groups:
Expand Down