final class AutosaveEntityFormHandler in Lightning Workflow 8.3
Disables autosave in the Layout Builder interface.
@internal This class is a temporary workaround to a limitation of autosave_form and is subject to change or removal at any time without warning. It should NOT be used in any way by external code!
Hierarchy
- class \Drupal\autosave_form\Form\AutosaveEntityFormHandler implements AutosaveEntityFormHandlerInterface, EntityHandlerInterface uses AutosaveFormAlterTrait, DependencySerializationTrait
- class \Drupal\lightning_workflow\AutosaveEntityFormHandler
Expanded class hierarchy of AutosaveEntityFormHandler
File
- src/
AutosaveEntityFormHandler.php, line 17
Namespace
Drupal\lightning_workflowView source
final class AutosaveEntityFormHandler extends BaseAutosaveEntityFormHandler {
/**
* {@inheritdoc}
*/
public function formAlter(array &$form, FormStateInterface $form_state) {
$form_object = $form_state
->getFormObject();
if ($form_object instanceof EntityFormInterface && $form_object
->getOperation() === 'layout_builder') {
return;
}
else {
parent::formAlter($form, $form_state);
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AutosaveButtonClickedTrait:: |
protected | function | Checks if the submission is triggered by autosave save. | |
AutosaveButtonClickedTrait:: |
protected | function | Checks if autosave restore has been triggered. | |
AutosaveButtonClickedTrait:: |
protected | function | Checks if autosave restore has been triggered. | |
AutosaveEntityFormHandler:: |
protected | property | The autosave form storage. | |
AutosaveEntityFormHandler:: |
protected | property | The configuration factory. | |
AutosaveEntityFormHandler:: |
protected | property | Defines whether the conflict module is enabled or not. | |
AutosaveEntityFormHandler:: |
protected | property | The current user. | |
AutosaveEntityFormHandler:: |
protected | property | The date formatter service. | |
AutosaveEntityFormHandler:: |
protected | property | The entity storage. | |
AutosaveEntityFormHandler:: |
protected | property | Information about the entity type. | |
AutosaveEntityFormHandler:: |
protected | property | The type of the entity for whose form the autosave form is used. | |
AutosaveEntityFormHandler:: |
protected | property | The factory for expirable key value stores used by form cache. | |
AutosaveEntityFormHandler:: |
protected | property | The time service. | |
AutosaveEntityFormHandler:: |
public | function | Ajax callback for autosaving content entity forms. | |
AutosaveEntityFormHandler:: |
public static | function |
Instantiates a new instance of this entity handler. Overrides EntityHandlerInterface:: |
|
AutosaveEntityFormHandler:: |
public static | function | Entity builder method. | |
AutosaveEntityFormHandler:: |
public | function |
Performs the needed alterations to the entity form. Overrides AutosaveEntityFormHandler:: |
|
AutosaveEntityFormHandler:: |
public static | function |
Returns the autosave session ID of the entity. Overrides AutosaveEntityFormHandlerInterface:: |
|
AutosaveEntityFormHandler:: |
protected | function | Retrieves the form ID and the form entity object from the form state. | |
AutosaveEntityFormHandler:: |
public | function |
Retrieves the last autosaved form state if any present. Overrides AutosaveFormInterface:: |
|
AutosaveEntityFormHandler:: |
public | function |
Retrieves the last autosaved timestamp. Overrides AutosaveFormInterface:: |
|
AutosaveEntityFormHandler:: |
public | function |
Determines if autosave is enabled for the current form. Overrides AutosaveFormInterface:: |
|
AutosaveEntityFormHandler:: |
public | function |
Checks if the autosave submit is allowed. Overrides AutosaveFormInterface:: |
|
AutosaveEntityFormHandler:: |
public | function |
Purges all autosaved state sessions for the current form and user. Overrides AutosaveFormInterface:: |
|
AutosaveEntityFormHandler:: |
public | function |
Purges the current autosave state session for the form state and user. Overrides AutosaveFormInterface:: |
|
AutosaveEntityFormHandler:: |
public | function |
Stores the state of the form in the autosave storage. Overrides AutosaveFormInterface:: |
|
AutosaveEntityFormHandler:: |
public | function | Initializes an instance of the autosave form controller. | |
AutosaveEntityFormHandlerInterface:: |
constant | The object property to use to flag the entity with the autosave session ID. | ||
AutosaveFormAlterTrait:: |
public | function | Ajax callback for autosaving forms. Aliased as: traitAutosaveFormAjax | |
AutosaveFormAlterTrait:: |
public | function | Ajax callback for rejecting autosaved states. | |
AutosaveFormAlterTrait:: |
public | function | Form submission handler for rejecting autosaved states. | |
AutosaveFormAlterTrait:: |
public | function | Form submission handler for restoring autosaved state. | |
AutosaveFormAlterTrait:: |
public | function | Form submission handler for autosaving forms. | |
AutosaveFormAlterTrait:: |
public | function | Performs the needed alterations to the form. Aliased as: traitFormAlter | |
AutosaveFormAlterTrait:: |
protected static | function | Retrieves the autosave form session ID. | |
AutosaveFormAlterTrait:: |
protected | function | Returns the HTTP method used by the request that is building the form. | |
AutosaveFormAlterTrait:: |
protected | function | Sets the autosave form session ID into the form state. | |
AutosaveFormInterface:: |
constant | |||
AutosaveFormInterface:: |
constant | |||
AutosaveFormInterface:: |
constant | |||
DependencySerializationTrait:: |
protected | property | An array of entity type IDs keyed by the property name of their storages. | |
DependencySerializationTrait:: |
protected | property | An array of service IDs keyed by property name used for serialization. | |
DependencySerializationTrait:: |
public | function | 1 | |
DependencySerializationTrait:: |
public | function | 2 | |
StringTranslationTrait:: |
protected | property | The string translation service. | 1 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. |