Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PoDatabaseWriter.php

function PoDatabaseWriter::setReport

Set the report array of write operations.

Parameters

array $report: Associative array with result information.

1 call to PoDatabaseWriter::setReport()
PoDatabaseWriter::__construct in core/modules/locale/src/PoDatabaseWriter.php
Constructor, initialize reporting array.

File

core/modules/locale/src/PoDatabaseWriter.php, line 92

Class

PoDatabaseWriter
Gettext PO writer working with the locale module database.

Namespace

Drupal\locale

Code

public function setReport($report = []) {
    $report += [
        'additions' => 0,
        'updates' => 0,
        'deletes' => 0,
        'skips' => 0,
        'strings' => [],
    ];
    $this->report = $report;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal