formwidgets/MLBlogMarkdown.php
public function getSaveValue($value)
    {
        $localeData = $this->getLocaleSaveData();

        /*
         * Set the translated values to the model
         */
        if ($this->model->methodExists('setAttributeTranslated')) {
            foreach ($localeData as $locale => $value) {
                $this->model->setAttributeTranslated('content', $value, $locale);

                $this->model->setAttributeTranslated(
                    'content_html',
                    Post::formatHtml($value),
                    $locale
                );
            }
        }

        return array_get($localeData, $this->defaultLocale->code, $value);
    }
public function getSaveValue($value)
    {
        $localeData = $this->getLocaleSaveData();

        /*
         * Set the translated values to the model
         */
        if ($this->model->methodExists('setAttributeTranslated')) {
            foreach ($localeData as $locale => $value) {
                $this->model->setAttributeTranslated('content', $value, $locale);

                $this->model->setAttributeTranslated(
                    'content_html',
                    Post::formatHtml($value),
                    $locale
                );
            }
        }

        return array_get($localeData, $this->defaultLocale->code, $value);
    }
public function getSaveValue ( $ value ) { $ localeData = $ this -> getLocaleSaveData ( ) ; /*
         * Set the translated values to the model
         */ if ( $ this -> model -> methodExists ( 'setAttributeTranslated' ) ) { foreach ( $ localeData as $ locale => $ value ) { $ this -> model -> setAttributeTranslated ( 'content' , $ value , $ locale ) ; $ this -> model -> setAttributeTranslated ( 'content_html' , Post :: formatHtml ( $ value ) , $ locale ) ; } } return array_get ( $ localeData , $ this -> defaultLocale -> code , $ value ) ; }
Returns an array of translated values for this field
@param $value
@return array
Returns an array of translated values for this field