class BlockCollection extends Collection (View source)

Properties

protected Collection $paths
protected Filesystem $fileSystem

Methods

__construct(mixed $items = [])

No description

mixed
findByName($search, array $sources = [])

No description

Collection
getBlocks()

No description

Collection
getBlockList()

No description

Collection
getMissingDirectories()

No description

Collection
readBlocks($directory, $source, null $type = null) deprecated

No description

$this
generatePaths()

No description

string
detectCustomSources(Block $block)

No description

$this
load()

No description

void
addBlocksFromConfig(Collection $items, string $type)

This function will add blocks and repeaters that are only defined in the config.

blockFromComponentName($file, string $blockName, string $type, string $source)

No description

void
logDeprecatedBlockConfig(string $blockName, string $type)

No description

SplFileInfo
findFileByComponentName(string $componentName)

This function will try to find a view from the a component name (minus the 'a17-block-' namespace).

array
toArray()

No description

Collection
list()

No description

Collection
collect()

No description

Collection
getRepeaters()

No description

Collection
getRepeaterList()

No description

Details

__construct(mixed $items = [])

No description

Parameters

mixed $items

mixed findByName($search, array $sources = [])

No description

Parameters

$search
array $sources

Return Value

mixed

Exceptions

Exception

Collection getBlocks()

No description

Return Value

Collection

Collection getBlockList()

No description

Return Value

Collection

Collection getMissingDirectories()

No description

Return Value

Collection

Collection readBlocks($directory, $source, null $type = null) deprecated

deprecated Removed in 3.x

No description

Parameters

$directory
$source
null $type

Return Value

Collection

$this generatePaths()

No description

Return Value

$this

string detectCustomSources(Block $block)

No description

Parameters

Block $block

Return Value

string

$this load()

No description

Return Value

$this

void addBlocksFromConfig(Collection $items, string $type)

This function will add blocks and repeaters that are only defined in the config.

For compatibility with 2.0.2 and lower

Parameters

Collection $items
string $type

Return Value

void

Block blockFromComponentName($file, string $blockName, string $type, string $source)

No description

Parameters

$file
string $blockName
string $type
string $source

Return Value

Block

void logDeprecatedBlockConfig(string $blockName, string $type)

No description

Parameters

string $blockName
string $type

Return Value

void

SplFileInfo findFileByComponentName(string $componentName)

This function will try to find a view from the a component name (minus the 'a17-block-' namespace).

Parameters

string $componentName

Return Value

SplFileInfo

array toArray()

No description

Return Value

array

Collection list()

No description

Return Value

Collection

Collection collect()

No description

Return Value

Collection

Collection getRepeaters()

No description

Return Value

Collection

Collection getRepeaterList()

No description

Return Value

Collection