Skip to content

Inputfield get config array

Alternative method for configuration that allows for array definition

Example

// Example implementation
public function ___getConfigArray() {
  return [
    'test' => [
      'type' => 'text',
      'label' => 'This is a test',
      'value' => 'Test'
    ]
  ];
);

Usage

$array = $inputfield->getConfigArray();

Return value

array