Log in
Model

WorkflowType

Magento\Developer\Model\Config\Backend\WorkflowType

What it does

This backend model manages the workflow type configuration for frontend asset compilation in Magento 2.

It prevents switching to client-side compilation in production mode and automatically cleans up generated view files when the workflow type changes.

Developers interact with this indirectly through the admin panel when configuring how static content (CSS, JS) should be compiled.

Public Methods

  • beforeSave()
  • afterSave()