Sepia\PoParser::getEntryId PHP Method

getEntryId() protected method

Generates the internal key for a msgid.
protected getEntryId ( array $entry ) : string
$entry array
return string
    protected function getEntryId(array $entry)
    {
        if (isset($entry['msgctxt'])) {
            $id = implode($this->options['multiline-glue'], (array) $entry['msgctxt']) . $this->options['context-glue'] . implode($this->options['multiline-glue'], (array) $entry['msgid']);
        } else {
            $id = implode($this->options['multiline-glue'], (array) $entry['msgid']);
        }
        return $id;
    }