/**
 * Get the array of view data.
 *
 * @return array View data.
 */
public function getData(): array

Examples

$data = $view->getData();