public function toStringFromYaml(array $parseResult)
    {
        $this->parameters = $parseResult;

        $this->removeNullValues();
        $this->removeInvalidKeys();
        $this->ensureDefaultBrush();

        $brush = SyntaxHighlighterBrush::fromIdentifierOrAlias($this->parameters['brush']);

        $this->eventContext->dispatch(
            RegisterCodeSnippetBrush::fromBrush($brush)
        );

        $this->formatValues();

        return $this->formatPairs();
    }
public function toStringFromYaml(array $parseResult)
    {
        $this->parameters = $parseResult;

        $this->removeNullValues();
        $this->removeInvalidKeys();
        $this->ensureDefaultBrush();

        $brush = SyntaxHighlighterBrush::fromIdentifierOrAlias($this->parameters['brush']);

        $this->eventContext->dispatch(
            RegisterCodeSnippetBrush::fromBrush($brush)
        );

        $this->formatValues();

        return $this->formatPairs();
    }
public function toStringFromYaml ( array $ parseResult ) { $ this -> parameters = $ parseResult ; $ this -> removeNullValues ( ) ; $ this -> removeInvalidKeys ( ) ; $ this -> ensureDefaultBrush ( ) ; $ brush = SyntaxHighlighterBrush :: fromIdentifierOrAlias ( $ this -> parameters [ 'brush' ] ) ; $ this -> eventContext -> dispatch ( RegisterCodeSnippetBrush :: fromBrush ( $ brush ) ) ; $ this -> formatValues ( ) ; return $ this -> formatPairs ( ) ; }
Parse to scalar string from YAML.

@param array $parseResult

@return string
Parse to scalar string from YAML .