You are here

public function PoDatabaseReader::setOptions in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/locale/src/PoDatabaseReader.php \Drupal\locale\PoDatabaseReader::setOptions()

Set the options for the current reader.

1 call to PoDatabaseReader::setOptions()
PoDatabaseReader::__construct in core/modules/locale/src/PoDatabaseReader.php
Constructor, initializes with default options.

File

core/modules/locale/src/PoDatabaseReader.php, line 75

Class

PoDatabaseReader
Gettext PO reader working with the locale module database.

Namespace

Drupal\locale

Code

public function setOptions(array $options) {
  $options += [
    'customized' => FALSE,
    'not_customized' => FALSE,
    'not_translated' => FALSE,
  ];
  $this->options = $options;
}