Returns the current values for the element fields, optionally for a specific submission.
Description
See also
Parameters
- $element
-
(awsmug\Torro_Forms\DB_Objects\Elements\Element) (Required) The element object to get values for.
- $submission
-
(awsmug\Torro_Forms\DB_Objects\Submissions\Submission|null) (Optional) Submission to get the values from, if available.
Default value: null
Return
(array) Associative array of <code>$field => $value</code> pairs, with the main element field having the key '_main'.
Source
File: src/db-objects/elements/element-types/non-input-element-type-trait.php
public function get_values( $element, $submission = null ) { return array(); }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |