Skip to content

Commit

Permalink
Fix phpcs issues, add view processors, clean cache, fix comments plug…
Browse files Browse the repository at this point in the history
…ins for nodes.
  • Loading branch information
LOBsTerr committed Aug 23, 2023
1 parent 1e878e3 commit 45a931f
Show file tree
Hide file tree
Showing 53 changed files with 735 additions and 412 deletions.
234 changes: 123 additions & 111 deletions config/optional/views.view.entity_activity_tracker_list.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,110 +10,13 @@ description: ''
tag: ''
base_table: entity_activity_tracker
base_field: activity_id
core: 8.x
display:
default:
display_plugin: default
id: default
display_title: Master
display_plugin: default
position: 0
display_options:
access:
type: none
options: { }
cache:
type: none
options: { }
query:
type: views_query
options:
disable_sql_rewrite: false
distinct: false
replica: false
query_comment: ''
query_tags: { }
exposed_form:
type: basic
options:
submit_button: Apply
reset_button: false
reset_button_label: Reset
exposed_sorts_label: 'Sort by'
expose_sort_order: true
sort_asc_label: Asc
sort_desc_label: Desc
pager:
type: mini
options:
items_per_page: 10
offset: 0
id: 0
total_pages: null
expose:
items_per_page: false
items_per_page_label: 'Items per page'
items_per_page_options: '5, 10, 25, 50'
items_per_page_options_all: false
items_per_page_options_all_label: '- All -'
offset: false
offset_label: Offset
tags:
previous: ‹‹
next: ››
style:
type: table
options:
grouping: { }
row_class: ''
default_row_class: true
override: true
sticky: false
caption: ''
summary: ''
description: ''
columns:
tracked_entity: tracked_entity
activity: activity
created: created
changed: changed
info:
tracked_entity:
sortable: false
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
activity:
sortable: true
default_sort_order: desc
align: ''
separator: ''
empty_column: false
responsive: ''
created:
sortable: true
default_sort_order: desc
align: ''
separator: ''
empty_column: false
responsive: ''
changed:
sortable: true
default_sort_order: desc
align: ''
separator: ''
empty_column: false
responsive: ''
default: '-1'
empty_table: false
row:
type: fields
options:
inline: { }
separator: ''
hide_empty: false
default_field_elements: true
fields:
tracked_entity:
id: tracked_entity
Expand All @@ -122,6 +25,7 @@ display:
relationship: none
group_type: group
admin_label: ''
plugin_id: tracked_entity
label: 'Tracked entity'
exclude: false
alter:
Expand Down Expand Up @@ -163,14 +67,14 @@ display:
hide_empty: false
empty_zero: false
hide_alter_empty: false
plugin_id: tracked_entity
activity:
id: activity
table: entity_activity_tracker
field: activity
relationship: none
group_type: group
admin_label: ''
plugin_id: numeric
label: Activity
exclude: false
alter:
Expand Down Expand Up @@ -220,14 +124,14 @@ display:
format_plural_string: !!binary MQNAY291bnQ=
prefix: ''
suffix: ''
plugin_id: numeric
created:
id: created
table: entity_activity_tracker
field: created
relationship: none
group_type: group
admin_label: ''
plugin_id: date
label: Created
exclude: false
alter:
Expand Down Expand Up @@ -272,14 +176,14 @@ display:
date_format: html_date
custom_date_format: ''
timezone: ''
plugin_id: date
changed:
id: changed
table: entity_activity_tracker
field: changed
relationship: none
group_type: group
admin_label: ''
plugin_id: date
label: 'last changed'
exclude: false
alter:
Expand Down Expand Up @@ -324,13 +228,55 @@ display:
date_format: 'time ago'
custom_date_format: ''
timezone: ''
plugin_id: date
filters: { }
sorts: { }
header: { }
footer: { }
pager:
type: mini
options:
offset: 0
items_per_page: 10
total_pages: null
id: 0
tags:
next: ››
previous: ‹‹
expose:
items_per_page: false
items_per_page_label: 'Items per page'
items_per_page_options: '5, 10, 25, 50'
items_per_page_options_all: false
items_per_page_options_all_label: '- All -'
offset: false
offset_label: Offset
exposed_form:
type: basic
options:
submit_button: Apply
reset_button: false
reset_button_label: Reset
exposed_sorts_label: 'Sort by'
expose_sort_order: true
sort_asc_label: Asc
sort_desc_label: Desc
access:
type: none
options: { }
cache:
type: none
options: { }
empty: { }
relationships: { }
sorts:
changed:
id: changed
table: entity_activity_tracker
field: changed
relationship: none
group_type: group
admin_label: ''
plugin_id: standard
order: DESC
expose:
label: ''
field_identifier: ''
exposed: false
arguments:
entity_type:
id: entity_type
Expand All @@ -339,6 +285,7 @@ display:
relationship: none
group_type: group
admin_label: ''
plugin_id: string
default_action: 'not found'
exception:
value: all
Expand All @@ -353,8 +300,8 @@ display:
summary_options:
base_path: ''
count: true
items_per_page: 25
override: false
items_per_page: 25
summary:
sort_order: asc
number_of_records: 0
Expand All @@ -370,14 +317,14 @@ display:
path_case: none
transform_dash: false
break_phrase: false
plugin_id: string
bundle:
id: bundle
table: entity_activity_tracker
field: bundle
relationship: none
group_type: group
admin_label: ''
plugin_id: string
default_action: 'not found'
exception:
value: all
Expand All @@ -392,8 +339,8 @@ display:
summary_options:
base_path: ''
count: true
items_per_page: 25
override: false
items_per_page: 25
summary:
sort_order: asc
number_of_records: 0
Expand All @@ -409,7 +356,72 @@ display:
path_case: none
transform_dash: false
break_phrase: false
plugin_id: string
filters: { }
style:
type: table
options:
grouping: { }
row_class: ''
default_row_class: true
columns:
tracked_entity: tracked_entity
activity: activity
created: created
changed: changed
default: '-1'
info:
tracked_entity:
sortable: false
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
activity:
sortable: true
default_sort_order: desc
align: ''
separator: ''
empty_column: false
responsive: ''
created:
sortable: true
default_sort_order: desc
align: ''
separator: ''
empty_column: false
responsive: ''
changed:
sortable: true
default_sort_order: desc
align: ''
separator: ''
empty_column: false
responsive: ''
override: true
sticky: false
summary: ''
empty_table: false
caption: ''
description: ''
row:
type: fields
options:
default_field_elements: true
inline: { }
separator: ''
hide_empty: false
query:
type: views_query
options:
query_comment: ''
disable_sql_rewrite: false
distinct: false
replica: false
query_tags: { }
relationships: { }
header: { }
footer: { }
display_extenders: { }
cache_metadata:
max-age: -1
Expand Down
4 changes: 4 additions & 0 deletions drush.services.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
services:
entity_activity_tracker.commands:
class: \Drupal\entity_activity_tracker\Commands\EntityActivityTrackerCommands
arguments:
- '@config.factory'
- '@database'
- '@config.storage'
tags:
- { name: drush.command }
1 change: 0 additions & 1 deletion entity_activity_tracker.info.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: 'Entity Activity Tracker'
type: module
description: 'Provides a way to track entity activity/popularity'
core: 8.x
core_version_requirement: ^8 || ^9
package: 'Entity Activity Tracker'
dependencies:
Expand Down
2 changes: 1 addition & 1 deletion entity_activity_tracker.install
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* Entity Activity Tracker module install/schema/update hooks.
*/

use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Config\Entity\ConfigEntityStorage;
use Drupal\Core\Entity\EntityTypeInterface;

/**
* Implements hook_schema().
Expand Down
7 changes: 7 additions & 0 deletions entity_activity_tracker.module
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,10 @@ function entity_activity_tracker_help($route_name, RouteMatchInterface $route_ma
default:
}
}

/**
* Implements hook_preprocess_block().
*/
function entity_activity_tracker_preprocess_block(&$variables) {
$test = $variables;
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: 'Entity Activity Tracker - Group plugins'
type: module
description: 'Provides ActivityProcessor plugins specific to group entity type'
core: 8.x
core_version_requirement: ^8 || ^9
package: 'Entity Activity Tracker'
dependencies:
Expand Down
Loading

0 comments on commit 45a931f

Please sign in to comment.