App\Services\Html\BlenderFormBuilder::redactor PHP Метод

redactor() публичный Метод

public redactor ( string $name, boolean $required = false, string $locale = '' ) : string
$name string
$required boolean
$locale string
Результат string
    public function redactor(string $name, bool $required = false, string $locale = '') : string
    {
        $fieldName = $this->fieldName($name, $locale);
        $options = ['data-editor' => '', 'data-editor-medialibrary-url' => action('Back\\Api\\MediaLibraryController@index', ['model_name' => ucfirst(get_class($this->model)), 'model_id' => $this->model->id, 'redactor=true'])];
        return $this->group([$this->label($name, $required), Form::textarea($fieldName, Form::useInitialValue($this->model, $name, $locale), $options), $this->error($fieldName, $this->errors)]);
    }