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

Breadcrumb

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

function PoStreamReader::readItem

Overrides PoReaderInterface::readItem

1 call to PoStreamReader::readItem()
PoStreamReader::readHeader in core/lib/Drupal/Component/Gettext/PoStreamReader.php
Read the header from the PO stream.

File

core/lib/Drupal/Component/Gettext/PoStreamReader.php, line 180

Class

PoStreamReader
Implements Gettext PO stream reader.

Namespace

Drupal\Component\Gettext

Code

public function readItem() {
    // Clear out the last item.
    $this->lastItem = NULL;
    // Read until finished with the stream or a complete item was identified.
    while (!$this->finished && is_null($this->lastItem)) {
        $this->readLine();
    }
    return $this->lastItem;
}

API Navigation

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