TypeInlineUsecombination extends AbstractFieldGenerator implements FieldGeneratorInterface

FinalYes

Generate data for type=inline fields.

Special implementation for inline_1 of tx_styleguide_inline_usecombination and tx_styleguide_inline_usecombinationbox

Internal
Attributes
#[Autoconfigure]
$public: true

Table of Contents

Interfaces

FieldGeneratorInterface
Interface for field value generators

Properties

$matchArray  : array<string|int, mixed>

Methods

__construct()  : mixed
generate()  : int
Generate 4 "child child" rows, connect 2 of them in mm table
match()  : bool
Check for tx_styleguide_inline_usecombination and tx_styleguide_inline_usecombinationbox table
checkMatchArray()  : bool
Recursive compare of $data with $matchArray.

Properties

$matchArray

protected array<string|int, mixed> $matchArray = ['fieldConfig' => ['config' => [ 'type' => 'inline', // additional check for foreign_table in check method 'foreign_field' => 'select_parent', 'foreign_selector' => 'select_child', 'foreign_unique' => 'select_child', ]]]

If all of these settings are identical to given values, match is true

Methods

generate()

Generate 4 "child child" rows, connect 2 of them in mm table

public generate(array<string|int, mixed> $data) : int
Parameters
$data : array<string|int, mixed>
Return values
int

match()

Check for tx_styleguide_inline_usecombination and tx_styleguide_inline_usecombinationbox table

public match(array<string|int, mixed> $data) : bool
Parameters
$data : array<string|int, mixed>
Return values
bool

checkMatchArray()

Recursive compare of $data with $matchArray.

protected checkMatchArray(array<string|int, mixed> $data, array<string|int, mixed> $matchArray) : bool
Parameters
$data : array<string|int, mixed>

Given data

$matchArray : array<string|int, mixed>

Part to mach against

Return values
bool

        
On this page

Search results