json() public method

Get the data to export to the client via JSON.
Since: 4.1.0
public json ( ) : array
return array Array of parameters passed to the JavaScript.
コード例 #1
0
 /**
  * Return parameters for this control.
  *
  * @since 4.3.0
  * @access public
  *
  * @return array Exported parameters.
  */
 public function json()
 {
     $exported = parent::json();
     $exported['menu_item_id'] = $this->setting->post_id;
     return $exported;
 }