public static function fill($name)
    {
        $email = Content::find()->where(['name' => $name])->limit(1)->one();
        if (empty($email)) {
            $email = Content::prepareDefault($name);
        }
        return $email;
    }
public static function fill($name)
    {
        $email = Content::find()->where(['name' => $name])->limit(1)->one();
        if (empty($email)) {
            $email = Content::prepareDefault($name);
        }
        return $email;
    }
public static function fill ( $ name ) { $ email = Content :: find ( ) -> where ( [ 'name' => $ name ] ) -> limit ( 1 ) -> one ( ) ; if ( empty ( $ email ) ) { $ email = Content :: prepareDefault ( $ name ) ; } return $ email ; }
Returns email content.
@param string $name content name
@return Content
@since 0.2
Returns email content .