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