You are here

protected function ParserOperationForm::operationDefault in Markdown 8.2

Magic method for the "default" operation.

Parameters

\Drupal\Core\Config\Config $config: The editable parser Config object.

See also

\Drupal\markdown\Form\ParserOperationForm::initializeOperation

File

src/Form/ParserOperationForm.php, line 250

Class

ParserOperationForm
Provides a confirmation form to disable a parser.

Namespace

Drupal\markdown\Form

Code

protected function operationDefault(Config $config) {
  $config
    ->set('default_parser', $this->parser
    ->getPluginId())
    ->save();
}