‪TYPO3CMS  10.4
TYPO3\CMS\Extbase\Mvc\View\ViewInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Extbase\Mvc\View\ViewInterface:
TYPO3\CMS\Backend\View\BackendTemplateView TYPO3\CMS\Extbase\Mvc\View\AbstractView TYPO3\CMS\Extbase\Mvc\View\EmptyView TYPO3\CMS\Fluid\View\AbstractTemplateView TYPO3\CMS\Extbase\Mvc\View\JsonView TYPO3\CMS\Extbase\Mvc\View\NotFoundView TYPO3\CMS\Fluid\View\StandaloneView

Public Member Functions

 setControllerContext (ControllerContext $controllerContext)
 
TYPO3 CMS Extbase Mvc View ViewInterface assign ($key, $value)
 
TYPO3 CMS Extbase Mvc View ViewInterface assignMultiple (array $values)
 
bool canRender (ControllerContext $controllerContext)
 
string render ()
 
 initializeView ()
 

Detailed Description

Interface of a view

Definition at line 23 of file ViewInterface.php.

Member Function Documentation

◆ assign()

TYPO3 CMS Extbase Mvc View ViewInterface TYPO3\CMS\Extbase\Mvc\View\ViewInterface::assign (   $key,
  $value 
)

Add a variable to the view data collection. Can be chained, so $this->view->assign(..., ...)->assign(..., ...); is possible

Parameters
string$key‪Key of variable
mixed$value‪Value of object
Returns
‪\TYPO3\CMS\Extbase\Mvc\View\ViewInterface an instance of $this, to enable chaining

Implemented in TYPO3\CMS\Backend\View\BackendTemplateView, TYPO3\CMS\Extbase\Mvc\View\AbstractView, and TYPO3\CMS\Extbase\Mvc\View\EmptyView.

Referenced by TYPO3\CMS\Linkvalidator\Report\LinkValidatorReport\createView(), TYPO3\CMS\Linkvalidator\Report\LinkValidatorReport\createViewForBrokenLinksTab(), TYPO3\CMS\Backend\LoginProvider\UsernamePasswordLoginProvider\render(), and TYPO3\CMS\Extbase\Mvc\Controller\ActionController\resolveView().

◆ assignMultiple()

TYPO3 CMS Extbase Mvc View ViewInterface TYPO3\CMS\Extbase\Mvc\View\ViewInterface::assignMultiple ( array  $values)

◆ canRender()

bool TYPO3\CMS\Extbase\Mvc\View\ViewInterface::canRender ( ControllerContext  $controllerContext)

Tells if the view implementation can render the view for the given context.

Parameters
\TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext$controllerContext
Returns
‪bool TRUE if the view has something useful to display, otherwise FALSE

Implemented in TYPO3\CMS\Backend\View\BackendTemplateView, TYPO3\CMS\Extbase\Mvc\View\AbstractView, TYPO3\CMS\Fluid\View\AbstractTemplateView, and TYPO3\CMS\Extbase\Mvc\View\EmptyView.

Referenced by TYPO3\CMS\Extbase\Mvc\Controller\ActionController\resolveView().

◆ initializeView()

◆ render()

◆ setControllerContext()

TYPO3\CMS\Extbase\Mvc\View\ViewInterface::setControllerContext ( ControllerContext  $controllerContext)