protected function AnonymousPublishingClAdminModeration::getAllContentsToModerate in Anonymous Publishing 8
Get all contents to moderate.
Parameters
int $test_id: The test_id to retrieve results of.
Return value
array Array of results grouped by test_class.
1 call to AnonymousPublishingClAdminModeration::getAllContentsToModerate()
- AnonymousPublishingClAdminModeration::buildForm in modules/
anonymous_publishing_cl/ src/ Form/ AnonymousPublishingClAdminModeration.php - Form constructor.
File
- modules/
anonymous_publishing_cl/ src/ Form/ AnonymousPublishingClAdminModeration.php, line 252
Class
- AnonymousPublishingClAdminModeration
- This class defines the moderation setting form for this module, available at : admin/config/people/anonymous_publishing_cl/moderation
Namespace
Drupal\anonymous_publishing_cl\FormCode
protected function getAllContentsToModerate($header) {
$query = $this->database
->select('anonymous_publishing', 'a');
$query
->fields('a');
$query
->where('a.verified > 0');
$query
->extend('Drupal\\Core\\Database\\Query\\TableSortExtender')
->orderByHeader($header);
$query
->extend('Drupal\\Core\\Database\\Query\\PagerSelectExtender')
->limit(50);
return $query
->execute()
->fetchAll();
}