PoDatabaseWriter::setOptions

public PoDatabaseWriter::setOptions(array $options)

Set the options for the current writer.

File

core/modules/locale/src/PoDatabaseWriter.php, line 113

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;
}
doc_Drupal
2016-10-29 09:34:27
Comments
Leave a Comment

Please login to continue.