com\setasign\SetaSite\Block

AbstractTwigMultiBlock Interface BlockInterface

File: /SetaSite/src/Block/AbstractTwigMultiBlock.php

Class hierarchy

Implements

Summary

Constants

PROVIDED_FILES

protected const AbstractBlock::PROVIDED_FILES = array ( 0 => 'icon.png', )

Properties

$blockName

protected string AbstractBlock::$blockName

$di

$isBlockFinal

$logger

protected ?\Psr\Log\LoggerInterface AbstractBlock::$logger

$params

protected array AbstractMultiBlock::$params

$placeholderFinder

$renderContext

protected array AbstractTwigMultiBlock::$renderContext = array()

$twig

$viewScript

protected string AbstractTwigMultiBlock::$viewScript = 'html.twig'

Static Methods

getAllowedChildBlocks()

public static AbstractMultiBlock::getAllowedChildBlocks (
void
): ?array
Return Values

If null all blocks are allowed!

getBlockPath()

abstract public static BlockInterface::getBlockPath (
void
): string

Just return DIR

getConfig()

getTwigNamespace()

public static AbstractTwigMultiBlock::getTwigNamespace (
void
): string

lookupFile()

readConfig()


Methods

__clone()

public AbstractBlock::__clone (
void
): void

Implementation of __clone()

__sleep()

final public AbstractBlock::__sleep (
void
): void

Blocks aren't serializable.

Exceptions

Throws \BadMethodCallException

fetchPlaceholders()

get()

Parameters
$propertyName: string
 

getAnchors()

public AbstractMultiBlock::getAnchors (
void
): array
Return Values

Returns an associative array

getBlockCacheValidators()

protected AbstractBlock::getBlockCacheValidators (
void
): array

getCacheName()

protected AbstractBlock::getCacheName (
void
): string

Overwrite if you need an alternative cache name e.g. for ControllerBlock

getData()

public AbstractMultiBlock::getData (
void
): array

getFullName()

public AbstractBlock::getFullName (
void
): string

getName()

public AbstractBlock::getName (
void
): string

getSubpagesTree()

public AbstractMultiBlock::getSubpagesTree (
void
): ?array

getUid()

public AbstractBlock::getUid (
void
): ?string

isBlockFinal()

public AbstractBlock::isBlockFinal (
void
): bool

lookForBlockAction()

Parameters
$uuid: string
 

render()

public AbstractTwigMultiBlock::render (
void
): string
Return Values

The rendered block

Exceptions

Throws ForceResponseException If the block forces a complete response.

Throws \com\setasign\SetaSite\HttpErrorException If the block forces a http error.

Throws \com\setasign\SetaFramework\Bootstrap\MaintenanceException

Throws BlockRenderException If something went wrong on rendering the block.

renderBlockManager()

renderView()

private AbstractTwigMultiBlock::renderView (
void
): string

This is the real render method.

This method will not be called if the cache is used.

Exceptions

Throws ForceResponseException

Throws \com\setasign\SetaSite\HttpErrorException

Throws \Throwable

setCache()

final public AbstractBlock::setCache (
\Psr\SimpleCache\CacheInterface $cache
): void
Parameters
$cache: \Psr\SimpleCache\CacheInterface
 

setLogger()

final public AbstractBlock::setLogger (
\Psr\Log\LoggerInterface $logger
): void

Sets a logger instance on the object.

Parameters
$logger: \Psr\Log\LoggerInterface
 

setParams()

public AbstractMultiBlock::setParams (
array $params
): void
Parameters
$params: array