You are here

public function PoDatabaseWriter::setOptions in Zircon Profile 8

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

Set the options for the current writer.

File

core/modules/locale/src/PoDatabaseWriter.php, line 118
Contains \Drupal\locale\PoDatabaseWriter.

Class

PoDatabaseWriter
Gettext PO writer working with the locale module database.

Namespace

Drupal\locale

Code

public function setOptions(array $options) {
  if (!isset($options['overwrite_options'])) {
    $options['overwrite_options'] = array();
  }
  $options['overwrite_options'] += array(
    'not_customized' => FALSE,
    'customized' => FALSE,
  );
  $options += array(
    'customized' => LOCALE_NOT_CUSTOMIZED,
  );
  $this->options = $options;
}