‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Form\Element\ImageManipulationElement Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Form\Element\ImageManipulationElement:
TYPO3\CMS\Backend\Form\Element\AbstractFormElement TYPO3\CMS\Backend\Form\AbstractNode TYPO3\CMS\Backend\Form\NodeInterface

Public Member Functions

 __construct (private readonly BackendViewFactory $backendViewFactory, private readonly UriBuilder $uriBuilder, private readonly EventDispatcherInterface $eventDispatcher, private readonly ResourceFactory $resourceFactory, private readonly HashService $hashService,)
 
array render ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Backend\Form\Element\AbstractFormElement
 injectNodeFactory (NodeFactory $nodeFactory)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
 setData (array $data)
 

Protected Member Functions

File null getFile (array $row, $fieldName)
 
array populateConfiguration (array $baseConfiguration)
 
array processConfiguration (array $config, string &$elementValue, File $file)
 
 getWizardUri ()
 
 getWizardPayload (array $cropVariants, File $image)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\Form\Element\AbstractFormElement
array renderFieldInformation ()
 
array renderFieldControl ()
 
array renderFieldWizard ()
 
 renderLabel (string $for)
 
 wrapWithFieldsetAndLegend (string $innerHTML)
 
 hasNullCheckboxButNoPlaceholder ()
 
 hasNullCheckboxWithPlaceholder ()
 
string formatValue ($format, $itemValue, $formatOptions=[])
 
int formMaxWidth ($size=48)
 
 resolveJavaScriptEvaluation (array $resultArray, string $name, ?object $evalObject)
 
string checkBoxParams (string $itemName, int $formElementValue, int $checkbox, int $checkboxesCount, array $fieldChangeFuncs=[], bool $invert=false)
 
 calculateColumnMarkup (int $cols)
 
 appendValueToLabelInDebugMode (string|int $label, string|int $value)
 
 getLanguageService ()
 
 getBackendUser ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
 initializeResultArray ()
 
array mergeChildReturnIntoExistingResult (array $existing, array $childReturn, bool $mergeHtml=true)
 
 getValidationDataAsJsonString (array $config)
 

Protected Attributes

array $defaultFieldInformation
 
array $defaultFieldWizard
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Backend\Form\Element\AbstractFormElement
int $defaultInputWidth = 30
 
int $minimumInputWidth = 10
 
int $maxInputWidth = 50
 
NodeFactory $nodeFactory
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
array $data = []
 
array $defaultFieldInformation = array( )
 
array $defaultFieldControl = array( )
 
array $defaultFieldWizard = array( )
 

Static Protected Attributes

static array $defaultConfig
 

Private Attributes

string $wizardRouteName = 'ajax_wizard_image_manipulation'
 

Detailed Description

Generation of image manipulation FormEngine element. This is typically used in FAL relations to cut images.

Definition at line 40 of file ImageManipulationElement.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Form\Element\ImageManipulationElement::__construct ( private readonly BackendViewFactory  $backendViewFactory,
private readonly UriBuilder  $uriBuilder,
private readonly EventDispatcherInterface  $eventDispatcher,
private readonly ResourceFactory  $resourceFactory,
private readonly HashService  $hashService 
)

Definition at line 119 of file ImageManipulationElement.php.

Member Function Documentation

◆ getFile()

File null TYPO3\CMS\Backend\Form\Element\ImageManipulationElement::getFile ( array  $row,
  $fieldName 
)
protected

Get file object

Parameters
string$fieldName
Returns
‪File|null

Definition at line 202 of file ImageManipulationElement.php.

References TYPO3\CMS\Core\Utility\MathUtility\canBeInterpretedAsInteger().

Referenced by TYPO3\CMS\Backend\Form\Element\ImageManipulationElement\render().

◆ getWizardPayload()

TYPO3\CMS\Backend\Form\Element\ImageManipulationElement::getWizardPayload ( array  $cropVariants,
File  $image 
)
protected

◆ getWizardUri()

TYPO3\CMS\Backend\Form\Element\ImageManipulationElement::getWizardUri ( )
protected

◆ populateConfiguration()

array TYPO3\CMS\Backend\Form\Element\ImageManipulationElement::populateConfiguration ( array  $baseConfiguration)
protected

◆ processConfiguration()

array TYPO3\CMS\Backend\Form\Element\ImageManipulationElement::processConfiguration ( array  $config,
string &  $elementValue,
File  $file 
)
protected

◆ render()

Member Data Documentation

◆ $defaultConfig

array TYPO3\CMS\Backend\Form\Element\ImageManipulationElement::$defaultConfig
staticprotected

Default element configuration

Definition at line 48 of file ImageManipulationElement.php.

Referenced by TYPO3\CMS\Backend\Form\Element\ImageManipulationElement\populateConfiguration().

◆ $defaultFieldInformation

array TYPO3\CMS\Backend\Form\Element\ImageManipulationElement::$defaultFieldInformation
protected
Initial value:
= array(
'tcaDescription' => [
'renderType' => 'tcaDescription',
],
)

Default field information enabled for this element.

Definition at line 91 of file ImageManipulationElement.php.

◆ $defaultFieldWizard

array TYPO3\CMS\Backend\Form\Element\ImageManipulationElement::$defaultFieldWizard
protected
Initial value:
= array(
'localizationStateSelector' => [
'renderType' => 'localizationStateSelector',
],
'otherLanguageThumbnails' => [
'renderType' => 'otherLanguageThumbnails',
'after' => [
'localizationStateSelector',
],
],
'defaultLanguageDifferences' => [
'renderType' => 'defaultLanguageDifferences',
'after' => [
'otherLanguageThumbnails',
],
],
)

Default field wizards enabled for this element.

Definition at line 101 of file ImageManipulationElement.php.

◆ $wizardRouteName

string TYPO3\CMS\Backend\Form\Element\ImageManipulationElement::$wizardRouteName = 'ajax_wizard_image_manipulation'
private

Definition at line 42 of file ImageManipulationElement.php.