コード例 #1
0
 /**
  * Add a new fragment
  *
  * @param  \Thelia\Core\Hook\Fragment $fragment
  * @return $this
  */
 public function addFragment(Fragment $fragment)
 {
     if (!empty($this->fields)) {
         $fragment->filter($this->fields);
     }
     $this->fragmentBag->addFragment($fragment);
     return $this;
 }
コード例 #2
0
 /**
  * Add a new fragment
  *
  * @param  \Thelia\Core\Hook\Fragment $fragment
  * @return $this
  */
 public function addFragment(Fragment $fragment)
 {
     $this->fragmentBag->addFragment($fragment);
     return $this;
 }