/** * {@inheritdoc} */ public function toArray() { return ['field' => $this->id] + parent::toArray(); }
public function toArray($filterVariableContent = false, &$filtered = array()) { $data = parent::toArray($filterVariableContent, $filtered); $data['mathML'] = $this->mathML; $data['annotations'] = $this->annotations; return $data; }
/** * {@inheritdoc} */ public function toArray() { return ['items' => $this->itemsToArray()] + parent::toArray(); }