public function PanelizerIPEController::revertToDefault in Lightning Workflow 8.3
Same name and namespace in other branches
- 8 src/Controller/PanelizerIPEController.php \Drupal\lightning_workflow\Controller\PanelizerIPEController::revertToDefault()
- 8.2 src/Controller/PanelizerIPEController.php \Drupal\lightning_workflow\Controller\PanelizerIPEController::revertToDefault()
File
- src/
Controller/ PanelizerIPEController.php, line 67
Class
- PanelizerIPEController
- Controller for Panels IPE routes that are specific to Panelizer.
Namespace
Drupal\lightning_workflow\ControllerCode
public function revertToDefault(FieldableEntityInterface $entity, $view_mode) {
if ($this->modInfo
->isModeratedEntity($entity)) {
$entity = $this
->getLatestRevision($entity
->getEntityTypeId(), $entity
->id());
}
return parent::revertToDefault($entity, $view_mode);
}