Encore\Admin\Middleware\PjaxMiddleware::fetchContents PHP 메소드

fetchContents() 보호된 메소드

Fetch the PJAX-specific HTML from the response.
protected fetchContents ( Crawler $crawler, string $container ) : string
$crawler Symfony\Component\DomCrawler\Crawler
$container string
리턴 string
    protected function fetchContents($crawler, $container)
    {
        $content = $crawler->filter($container);
        if (!$content->count()) {
            abort(422);
        }
        return html_entity_decode($content->html());
    }