예제 #1
0
 /**
  * Overloading default Translatable functionality for
  * creating a new translation
  *
  * @param string $locale
  * @return Model
  */
 public function getNewTranslation($locale)
 {
     $nodeSource = NodeSource::newWithType($locale, $this->getNodeTypeName());
     $this->translations->add($nodeSource);
     return $nodeSource;
 }
예제 #2
0
 protected function getNodeSource($locale = 'en', $type = 'project')
 {
     return NodeSource::newWithType($locale, $type);
 }