‪TYPO3CMS  ‪main
TYPO3\CMS\Form\Domain\Model\Renderable\RenderableVariant Class Reference
Inheritance diagram for TYPO3\CMS\Form\Domain\Model\Renderable\RenderableVariant:
TYPO3\CMS\Form\Domain\Model\Renderable\RenderableVariantInterface

Public Member Functions

 __construct (string $identifier, array $options, VariableRenderableInterface $renderable)
 
 apply ()
 
 conditionMatches (Resolver $conditionResolver)
 
 getIdentifier ()
 
 isApplied ()
 

Protected Attributes

string $identifier
 
array $options
 
VariableRenderableInterface $renderable
 
string $condition = ''
 
bool $applied = false
 

Detailed Description

Scope: frontend This class is NOT meant to be sub classed by developers.

Definition at line 28 of file RenderableVariant.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Form\Domain\Model\Renderable\RenderableVariant::__construct ( string  $identifier,
array  $options,
VariableRenderableInterface  $renderable 
)

Member Function Documentation

◆ apply()

TYPO3\CMS\Form\Domain\Model\Renderable\RenderableVariant::apply ( )

Apply the specified variant to this form element regardless of their conditions

Implements TYPO3\CMS\Form\Domain\Model\Renderable\RenderableVariantInterface.

Definition at line 77 of file RenderableVariant.php.

◆ conditionMatches()

TYPO3\CMS\Form\Domain\Model\Renderable\RenderableVariant::conditionMatches ( Resolver  $conditionResolver)

◆ getIdentifier()

TYPO3\CMS\Form\Domain\Model\Renderable\RenderableVariant::getIdentifier ( )

◆ isApplied()

TYPO3\CMS\Form\Domain\Model\Renderable\RenderableVariant::isApplied ( )

Member Data Documentation

◆ $applied

bool TYPO3\CMS\Form\Domain\Model\Renderable\RenderableVariant::$applied = false
protected

◆ $condition

string TYPO3\CMS\Form\Domain\Model\Renderable\RenderableVariant::$condition = ''
protected

Definition at line 44 of file RenderableVariant.php.

◆ $identifier

string TYPO3\CMS\Form\Domain\Model\Renderable\RenderableVariant::$identifier
protected

◆ $options

array TYPO3\CMS\Form\Domain\Model\Renderable\RenderableVariant::$options
protected

◆ $renderable

VariableRenderableInterface TYPO3\CMS\Form\Domain\Model\Renderable\RenderableVariant::$renderable
protected