You are here

public function PoDatabaseReader::setOptions in Drupal 10

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

Set the options for the current reader.

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;
}