src/Workflows/ContentModerationGrid.php 1 location
|
@@ 89-96 (lines=8) @@
|
86 |
|
return new static($stateStorage, $transStorage); |
87 |
|
} |
88 |
|
|
89 |
|
protected function getStates() { |
90 |
|
$fullStates = $this->stateStorage->loadMultiple(); |
91 |
|
$simpleStates = array_map(function ($entity) { |
92 |
|
return $entity->label(); |
93 |
|
}, $fullStates); |
94 |
|
asort($simpleStates); |
95 |
|
return $simpleStates; |
96 |
|
} |
97 |
|
|
98 |
|
protected function getTrans() { |
99 |
|
$fullTrans = $this->transStorage->loadMultiple(); |
src/Workflows/ContentModerationReportBase.php 1 location
|
@@ 51-58 (lines=8) @@
|
48 |
|
return $repeatedLabels; |
49 |
|
} |
50 |
|
|
51 |
|
protected function getStates() { |
52 |
|
$fullStates = $this->stateStorage->loadMultiple(); |
53 |
|
$simpleStates = array_map(function ($entity) { |
54 |
|
return $entity->label(); |
55 |
|
}, $fullStates); |
56 |
|
asort($simpleStates); |
57 |
|
return $simpleStates; |
58 |
|
} |
59 |
|
|
60 |
|
protected function getTrans() { |
61 |
|
$fullTrans = $this->transStorage->loadMultiple(); |