EmptyView

class \TYPO3\CMS\Extbase\Mvc\View\EmptyView

Implements
ViewInterface

An empty view - a special case.

Deprecated

since v11, will be removed with 12.

Table of Contents

Interfaces

ViewInterface
Interface of a view

Methods

__call()  : mixed
A magic call method.
__construct()  : mixed
assign()  : EmptyView
Dummy method to satisfy the ViewInterface
assignMultiple()  : EmptyView
Dummy method to satisfy the ViewInterface
canRender()  : bool
This view can be used in any case.
initializeView()  : mixed
Initializes this view.
render()  : string
Renders the empty view
setControllerContext()  : mixed
Dummy method to satisfy the ViewInterface

Methods

__call()

A magic call method.

public __call(string $methodName, array $arguments) : mixed

Because this empty view is used as a Special Case in situations when no matching view is available, it must be able to handle method calls which originally were directed to another type of view. This magic method should prevent PHP from issuing a fatal error.

Parameters

$methodName : string
$arguments : array

assign()

Dummy method to satisfy the ViewInterface

public assign(string $key, mixed $value) : EmptyView

Parameters

$key : string
$value : mixed

Return values

EmptyView —

instance of $this to allow chaining

assignMultiple()

Dummy method to satisfy the ViewInterface

public assignMultiple(array $values) : EmptyView

Parameters

$values : array

Return values

EmptyView —

instance of $this to allow chaining

canRender()

This view can be used in any case.

public canRender() : bool

Deprecated

since TYPO3 v11, will be removed in v12. Legacy method, not part of ViewInterface anymore.

Return values

bool —

TRUE

initializeView()

Initializes this view.

public initializeView() : mixed

Override this method for initializing your concrete view implementation.

render()

Renders the empty view

public render() : string

Return values

string —

An empty string

On this page