public function EntityDisplayBase::getOriginalMode in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/EntityDisplayBase.php \Drupal\Core\Entity\EntityDisplayBase::getOriginalMode()
- 9 core/lib/Drupal/Core/Entity/EntityDisplayBase.php \Drupal\Core\Entity\EntityDisplayBase::getOriginalMode()
Gets the original view or form mode that was requested.
Return value
string The original mode that was requested.
Overrides EntityDisplayInterface::getOriginalMode
2 calls to EntityDisplayBase::getOriginalMode()
- LayoutBuilderEntityViewDisplay::isCustomMode in core/
modules/ layout_builder/ src/ Entity/ LayoutBuilderEntityViewDisplay.php - Indicates if this display is using the '_custom' view mode.
- QuickEditLayoutBuilderEntityViewDisplay::getQuickEditSectionComponent in core/
modules/ quickedit/ src/ Entity/ QuickEditLayoutBuilderEntityViewDisplay.php - Returns the Quick Edit formatter settings.
File
- core/
lib/ Drupal/ Core/ Entity/ EntityDisplayBase.php, line 218
Class
- EntityDisplayBase
- Provides a common base class for entity view and form displays.
Namespace
Drupal\Core\EntityCode
public function getOriginalMode() {
return $this
->get('originalMode');
}