League\CommonMark\Block\Element\Paragraph::parseReferences PHP Метод

parseReferences() защищенный Метод

protected parseReferences ( League\CommonMark\ContextInterface $context, Cursor $cursor ) : boolean
$context League\CommonMark\ContextInterface
$cursor League\CommonMark\Cursor
Результат boolean
    protected function parseReferences(ContextInterface $context, Cursor $cursor)
    {
        $referenceFound = false;
        while ($cursor->getCharacter() === '[' && $context->getReferenceParser()->parse($cursor)) {
            $this->finalStringContents = $cursor->getRemainder();
            $referenceFound = true;
        }
        return $referenceFound;
    }