function PoDatabaseWriter::setOptions

Set the options for the current writer.

File

drupal/core/modules/locale/lib/Drupal/locale/PoDatabaseWriter.php, line 120
Definition of Drupal\locale\PoDatabaseWriter.

Class

PoDatabaseWriter
Gettext PO writer working with the locale module database.

Namespace

Drupal\locale

Code

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