hasTranslation() public method

Returns a value indicating whether the translation model for the specified language exists.
public hasTranslation ( string | null $language = null ) : boolean
$language string | null
return boolean
Esempio n. 1
0
 /**
  * @inherited
  */
 public function hasTranslation($language = null)
 {
     if ($language === null) {
         $language = Lang::getCurrent()->id;
     }
     return parent::hasTranslation($language);
 }