public function EntityDisplayBase::getOriginalMode in Drupal 8
Same name and namespace in other branches
- 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::getQuickEditSectionComponent in core/
modules/ layout_builder/ src/ Entity/ LayoutBuilderEntityViewDisplay.php - Returns the Quick Edit formatter settings.
- LayoutBuilderEntityViewDisplay::isCustomMode in core/
modules/ layout_builder/ src/ Entity/ LayoutBuilderEntityViewDisplay.php - Indicates if this display is using the '_custom' view mode.
File
- core/
lib/ Drupal/ Core/ Entity/ EntityDisplayBase.php, line 224
Class
- EntityDisplayBase
- Provides a common base class for entity view and form displays.
Namespace
Drupal\Core\EntityCode
public function getOriginalMode() {
return $this
->get('originalMode');
}