Encore\Admin\Middleware\PjaxMiddleware::fetchContents PHP Method

fetchContents() protected method

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