src/LinkPreview/LinkPreview.php
public function getParsed()
    {
        $parsed = [];

        $parsers = $this->getParsers();
        if (0 === count($parsers)) {
            $this->addDefaultParsers();
        }

        foreach ($this->getParsers() as $name => $parser) {
            $parser->getLink()->setUrl($this->getUrl());

            if ($parser->isValidParser()) {
                $parsed[$name] = $parser->parseLink();

                if (!$this->getPropagation()) {
                    break;
                }
            }
        }

        return $parsed;
    }
public function getParsed()
    {
        $parsed = [];

        $parsers = $this->getParsers();
        if (0 === count($parsers)) {
            $this->addDefaultParsers();
        }

        foreach ($this->getParsers() as $name => $parser) {
            $parser->getLink()->setUrl($this->getUrl());

            if ($parser->isValidParser()) {
                $parsed[$name] = $parser->parseLink();

                if (!$this->getPropagation()) {
                    break;
                }
            }
        }

        return $parsed;
    }
public function getParsed ( ) { $ parsed = [ ] ; $ parsers = $ this -> getParsers ( ) ; if ( 0 === count ( $ parsers ) ) { $ this -> addDefaultParsers ( ) ; } foreach ( $ this -> getParsers ( ) as $ name => $ parser ) { $ parser -> getLink ( ) -> setUrl ( $ this -> getUrl ( ) ) ; if ( $ parser -> isValidParser ( ) ) { $ parsed [ $ name ] = $ parser -> parseLink ( ) ; if ( ! $ this -> getPropagation ( ) ) { break ; } } } return $ parsed ; }
Get parsed model array with parser name as a key
@return LinkInterface[]
Get parsed model array with parser name as a key