Skip to content

Commit 45a931f

Browse files
committed
Fix phpcs issues, add view processors, clean cache, fix comments plugins for nodes.
1 parent 1e878e3 commit 45a931f

File tree

53 files changed

+735
-412
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+735
-412
lines changed

config/optional/views.view.entity_activity_tracker_list.yml

Lines changed: 123 additions & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -10,110 +10,13 @@ description: ''
1010
tag: ''
1111
base_table: entity_activity_tracker
1212
base_field: activity_id
13-
core: 8.x
1413
display:
1514
default:
16-
display_plugin: default
1715
id: default
1816
display_title: Master
17+
display_plugin: default
1918
position: 0
2019
display_options:
21-
access:
22-
type: none
23-
options: { }
24-
cache:
25-
type: none
26-
options: { }
27-
query:
28-
type: views_query
29-
options:
30-
disable_sql_rewrite: false
31-
distinct: false
32-
replica: false
33-
query_comment: ''
34-
query_tags: { }
35-
exposed_form:
36-
type: basic
37-
options:
38-
submit_button: Apply
39-
reset_button: false
40-
reset_button_label: Reset
41-
exposed_sorts_label: 'Sort by'
42-
expose_sort_order: true
43-
sort_asc_label: Asc
44-
sort_desc_label: Desc
45-
pager:
46-
type: mini
47-
options:
48-
items_per_page: 10
49-
offset: 0
50-
id: 0
51-
total_pages: null
52-
expose:
53-
items_per_page: false
54-
items_per_page_label: 'Items per page'
55-
items_per_page_options: '5, 10, 25, 50'
56-
items_per_page_options_all: false
57-
items_per_page_options_all_label: '- All -'
58-
offset: false
59-
offset_label: Offset
60-
tags:
61-
previous: ‹‹
62-
next: ››
63-
style:
64-
type: table
65-
options:
66-
grouping: { }
67-
row_class: ''
68-
default_row_class: true
69-
override: true
70-
sticky: false
71-
caption: ''
72-
summary: ''
73-
description: ''
74-
columns:
75-
tracked_entity: tracked_entity
76-
activity: activity
77-
created: created
78-
changed: changed
79-
info:
80-
tracked_entity:
81-
sortable: false
82-
default_sort_order: asc
83-
align: ''
84-
separator: ''
85-
empty_column: false
86-
responsive: ''
87-
activity:
88-
sortable: true
89-
default_sort_order: desc
90-
align: ''
91-
separator: ''
92-
empty_column: false
93-
responsive: ''
94-
created:
95-
sortable: true
96-
default_sort_order: desc
97-
align: ''
98-
separator: ''
99-
empty_column: false
100-
responsive: ''
101-
changed:
102-
sortable: true
103-
default_sort_order: desc
104-
align: ''
105-
separator: ''
106-
empty_column: false
107-
responsive: ''
108-
default: '-1'
109-
empty_table: false
110-
row:
111-
type: fields
112-
options:
113-
inline: { }
114-
separator: ''
115-
hide_empty: false
116-
default_field_elements: true
11720
fields:
11821
tracked_entity:
11922
id: tracked_entity
@@ -122,6 +25,7 @@ display:
12225
relationship: none
12326
group_type: group
12427
admin_label: ''
28+
plugin_id: tracked_entity
12529
label: 'Tracked entity'
12630
exclude: false
12731
alter:
@@ -163,14 +67,14 @@ display:
16367
hide_empty: false
16468
empty_zero: false
16569
hide_alter_empty: false
166-
plugin_id: tracked_entity
16770
activity:
16871
id: activity
16972
table: entity_activity_tracker
17073
field: activity
17174
relationship: none
17275
group_type: group
17376
admin_label: ''
77+
plugin_id: numeric
17478
label: Activity
17579
exclude: false
17680
alter:
@@ -220,14 +124,14 @@ display:
220124
format_plural_string: !!binary MQNAY291bnQ=
221125
prefix: ''
222126
suffix: ''
223-
plugin_id: numeric
224127
created:
225128
id: created
226129
table: entity_activity_tracker
227130
field: created
228131
relationship: none
229132
group_type: group
230133
admin_label: ''
134+
plugin_id: date
231135
label: Created
232136
exclude: false
233137
alter:
@@ -272,14 +176,14 @@ display:
272176
date_format: html_date
273177
custom_date_format: ''
274178
timezone: ''
275-
plugin_id: date
276179
changed:
277180
id: changed
278181
table: entity_activity_tracker
279182
field: changed
280183
relationship: none
281184
group_type: group
282185
admin_label: ''
186+
plugin_id: date
283187
label: 'last changed'
284188
exclude: false
285189
alter:
@@ -324,13 +228,55 @@ display:
324228
date_format: 'time ago'
325229
custom_date_format: ''
326230
timezone: ''
327-
plugin_id: date
328-
filters: { }
329-
sorts: { }
330-
header: { }
331-
footer: { }
231+
pager:
232+
type: mini
233+
options:
234+
offset: 0
235+
items_per_page: 10
236+
total_pages: null
237+
id: 0
238+
tags:
239+
next: ››
240+
previous: ‹‹
241+
expose:
242+
items_per_page: false
243+
items_per_page_label: 'Items per page'
244+
items_per_page_options: '5, 10, 25, 50'
245+
items_per_page_options_all: false
246+
items_per_page_options_all_label: '- All -'
247+
offset: false
248+
offset_label: Offset
249+
exposed_form:
250+
type: basic
251+
options:
252+
submit_button: Apply
253+
reset_button: false
254+
reset_button_label: Reset
255+
exposed_sorts_label: 'Sort by'
256+
expose_sort_order: true
257+
sort_asc_label: Asc
258+
sort_desc_label: Desc
259+
access:
260+
type: none
261+
options: { }
262+
cache:
263+
type: none
264+
options: { }
332265
empty: { }
333-
relationships: { }
266+
sorts:
267+
changed:
268+
id: changed
269+
table: entity_activity_tracker
270+
field: changed
271+
relationship: none
272+
group_type: group
273+
admin_label: ''
274+
plugin_id: standard
275+
order: DESC
276+
expose:
277+
label: ''
278+
field_identifier: ''
279+
exposed: false
334280
arguments:
335281
entity_type:
336282
id: entity_type
@@ -339,6 +285,7 @@ display:
339285
relationship: none
340286
group_type: group
341287
admin_label: ''
288+
plugin_id: string
342289
default_action: 'not found'
343290
exception:
344291
value: all
@@ -353,8 +300,8 @@ display:
353300
summary_options:
354301
base_path: ''
355302
count: true
356-
items_per_page: 25
357303
override: false
304+
items_per_page: 25
358305
summary:
359306
sort_order: asc
360307
number_of_records: 0
@@ -370,14 +317,14 @@ display:
370317
path_case: none
371318
transform_dash: false
372319
break_phrase: false
373-
plugin_id: string
374320
bundle:
375321
id: bundle
376322
table: entity_activity_tracker
377323
field: bundle
378324
relationship: none
379325
group_type: group
380326
admin_label: ''
327+
plugin_id: string
381328
default_action: 'not found'
382329
exception:
383330
value: all
@@ -392,8 +339,8 @@ display:
392339
summary_options:
393340
base_path: ''
394341
count: true
395-
items_per_page: 25
396342
override: false
343+
items_per_page: 25
397344
summary:
398345
sort_order: asc
399346
number_of_records: 0
@@ -409,7 +356,72 @@ display:
409356
path_case: none
410357
transform_dash: false
411358
break_phrase: false
412-
plugin_id: string
359+
filters: { }
360+
style:
361+
type: table
362+
options:
363+
grouping: { }
364+
row_class: ''
365+
default_row_class: true
366+
columns:
367+
tracked_entity: tracked_entity
368+
activity: activity
369+
created: created
370+
changed: changed
371+
default: '-1'
372+
info:
373+
tracked_entity:
374+
sortable: false
375+
default_sort_order: asc
376+
align: ''
377+
separator: ''
378+
empty_column: false
379+
responsive: ''
380+
activity:
381+
sortable: true
382+
default_sort_order: desc
383+
align: ''
384+
separator: ''
385+
empty_column: false
386+
responsive: ''
387+
created:
388+
sortable: true
389+
default_sort_order: desc
390+
align: ''
391+
separator: ''
392+
empty_column: false
393+
responsive: ''
394+
changed:
395+
sortable: true
396+
default_sort_order: desc
397+
align: ''
398+
separator: ''
399+
empty_column: false
400+
responsive: ''
401+
override: true
402+
sticky: false
403+
summary: ''
404+
empty_table: false
405+
caption: ''
406+
description: ''
407+
row:
408+
type: fields
409+
options:
410+
default_field_elements: true
411+
inline: { }
412+
separator: ''
413+
hide_empty: false
414+
query:
415+
type: views_query
416+
options:
417+
query_comment: ''
418+
disable_sql_rewrite: false
419+
distinct: false
420+
replica: false
421+
query_tags: { }
422+
relationships: { }
423+
header: { }
424+
footer: { }
413425
display_extenders: { }
414426
cache_metadata:
415427
max-age: -1

drush.services.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
services:
22
entity_activity_tracker.commands:
33
class: \Drupal\entity_activity_tracker\Commands\EntityActivityTrackerCommands
4+
arguments:
5+
- '@config.factory'
6+
- '@database'
7+
- '@config.storage'
48
tags:
59
- { name: drush.command }

entity_activity_tracker.info.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: 'Entity Activity Tracker'
22
type: module
33
description: 'Provides a way to track entity activity/popularity'
4-
core: 8.x
54
core_version_requirement: ^8 || ^9
65
package: 'Entity Activity Tracker'
76
dependencies:

entity_activity_tracker.install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
* Entity Activity Tracker module install/schema/update hooks.
66
*/
77

8-
use Drupal\Core\Entity\EntityTypeInterface;
98
use Drupal\Core\Config\Entity\ConfigEntityStorage;
9+
use Drupal\Core\Entity\EntityTypeInterface;
1010

1111
/**
1212
* Implements hook_schema().

entity_activity_tracker.module

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,10 @@ function entity_activity_tracker_help($route_name, RouteMatchInterface $route_ma
2121
default:
2222
}
2323
}
24+
25+
/**
26+
* Implements hook_preprocess_block().
27+
*/
28+
function entity_activity_tracker_preprocess_block(&$variables) {
29+
$test = $variables;
30+
}

modules/entity_activity_tracker_group/entity_activity_tracker_group.info.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: 'Entity Activity Tracker - Group plugins'
22
type: module
33
description: 'Provides ActivityProcessor plugins specific to group entity type'
4-
core: 8.x
54
core_version_requirement: ^8 || ^9
65
package: 'Entity Activity Tracker'
76
dependencies:

0 commit comments

Comments
 (0)