function PoDatabaseReader::setOptions

Same name in other branches
  1. 9 core/modules/locale/src/PoDatabaseReader.php \Drupal\locale\PoDatabaseReader::setOptions()
  2. 8.9.x core/modules/locale/src/PoDatabaseReader.php \Drupal\locale\PoDatabaseReader::setOptions()
  3. 10 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.