Dropdown::get_edit_submission_fields_args( awsmug\Torro_Forms\DB_Objects\Elements\Element $element )

Gets the fields arguments for an element of this type when editing submission values in the admin.

Description

See also

Parameters

$element

(awsmug\Torro_Forms\DB_Objects\Elements\Element) (Required) Element to get fields arguments for.

Return

(array) An associative array of <code>$field_slug => $field_args</code> pairs.

Source

File: src/db-objects/elements/element-types/base/dropdown.php

	public function get_edit_submission_fields_args( $element ) {
		$fields = parent::get_edit_submission_fields_args( $element );

		$slug = $this->get_edit_submission_field_slug( $element->id );

		$fields[ $slug ]['type'] = 'select';

		return $fields;
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.