Returns an array representation of the model.
Description
See also
Parameters
- $include_meta
-
(bool) (Optional) Whether to include metadata for each model in the collection.
Default value: true
Return
(array) Array including all information for the model.
Source
File: src/db-objects/containers/container.php
public function to_json( $include_meta = true ) { $data = parent::to_json( $include_meta ); /* translators: %s: HTML code for required indicator */ $required_indicator_description = '<span aria-hidden="true">' . sprintf( __( 'Required fields are marked %s.', 'torro-forms' ), '<span class="torro-required-indicator">*</span>' ) . '</span>'; /** * Filters the required indicator description, which is displayed above or below each form. * * @since 1.0.0 * * @param string $required_indicator_description Indicator description HTML string. Default is a description hidden for screen reader users, * explaining the asterisk character to mark a required field. */ $data['required_description'] = apply_filters( "{$this->manager->get_prefix()}required_indicator_description", $required_indicator_description ); return $data; }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |