/** * Add data to the data layer. * * @param array|string $key * @param mixed $value */ public function set($key, $value = null) { $this->dataLayer->set($key, $value); }
/** * Retrieve the data layer's data for the next request. * * @return array */ public function getFlashData() { return $this->flashDataLayer->toArray(); }