class BlocksController extends Controller (View source)

Traits

AuthorizesRequests
DispatchesJobs
ValidatesRequests

Methods

__construct()

No description

void
removeMiddleware(string $middleware)

Attempts to unset the given middleware.

string
preview(BlockRepository $blockRepository, Application $app, Factory $viewFactory, Request $request, Repository $config)

Render an HTML preview of a single block.

getChildrenBlock($block, $blockRepository)

No description

getChildrenPreview($blocks, $blocksCollection, $parentId, $blockId, $blockRepository)

No description

Details

__construct()

No description

void removeMiddleware(string $middleware)

Attempts to unset the given middleware.

Parameters

string $middleware

Return Value

void

string preview(BlockRepository $blockRepository, Application $app, Factory $viewFactory, Request $request, Repository $config)

Render an HTML preview of a single block.

This is used by the full screen content editor.

Parameters

BlockRepository $blockRepository
Application $app
Factory $viewFactory
Request $request
Repository $config

Return Value

string

protected getChildrenBlock($block, $blockRepository)

No description

Parameters

$block
$blockRepository

protected getChildrenPreview($blocks, $blocksCollection, $parentId, $blockId, $blockRepository)

No description

Parameters

$blocks
$blocksCollection
$parentId
$blockId
$blockRepository