Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PoDatabaseReader.php

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal