You are here

public function N1EDController::toggleUseFlmngrOnFileFields in N1ED - Visual editor as CKEditor plugin with Bootstrap support 8.2

1 string reference to 'N1EDController::toggleUseFlmngrOnFileFields'
n1ed.routing.yml in ./n1ed.routing.yml
n1ed.routing.yml

File

src/Controller/N1EDController.php, line 68

Class

N1EDController
Provides route responses for Flmngr file manager.

Namespace

Drupal\n1ed\Controller

Code

public function toggleUseFlmngrOnFileFields() {
  $useFlmngrOnFileFields = json_decode(file_get_contents('php://input'))->useFlmngrOnFileFields;
  $config = $this->configFactory
    ->getEditable('n1ed.settings');
  $config
    ->set('useFlmngrOnFileFields', $useFlmngrOnFileFields);
  $config
    ->save(true);
  return new Response();
}