public function getForm() : array

Fires while building the configuration form of the cron job.


Description

Returns an associative array holding all the cron job settings.

The key of the associative array represents the form name, which is exactly the same name that should be used to retrieve the value from the $args registry provided by the execute method.

The value of the associative array is another associative array holding all the input name-value attribute pairs.

For further details about the use of all the supported form fields, you can refer to the article below:
https://extensionsforjoomla.com/help/knowledge-base/vik-restaurants/plugin-events/system/visualization/handbook/form-fields


Return Value

Array.


Example

/**
 * @inheritDoc
 */
public function getForm()
{
    return [
        'title' => [
            'type' => 'text',
            'label' => 'Title',
            'value' => 'This is the title',
            'placeholder' => 'Insert title here...',
            'maxlength' => 128,
        ],
        'comment' => [
            'type' => 'textarea',
            'label' => 'Comment',
            'value' => 'This is the comment',
            'width' => '100%',
            'height' => '120px',
        ],
    ];
}
Last Update: 23 hours ago.
Helpful?