You are here

protected function AnonymousPublishingClAdminPrivacy::getNumberOfVerifiedContents in Anonymous Publishing 8

Get all verified content.

Parameters

int $test_id: The test_id to retrieve results of.

Return value

array Array of results grouped by test_class.

1 call to AnonymousPublishingClAdminPrivacy::getNumberOfVerifiedContents()
AnonymousPublishingClAdminPrivacy::buildForm in modules/anonymous_publishing_cl/src/Form/AnonymousPublishingClAdminPrivacy.php
Form constructor.

File

modules/anonymous_publishing_cl/src/Form/AnonymousPublishingClAdminPrivacy.php, line 177

Class

AnonymousPublishingClAdminPrivacy

Namespace

Drupal\anonymous_publishing_cl\Form

Code

protected function getNumberOfVerifiedContents() {
  $query = $this->database
    ->select('anonymous_publishing', 'a');
  $query
    ->fields('a');
  $query
    ->where('a.verified > 0');
  $result = $query
    ->execute()
    ->fetchAssoc();
  return $result;
}