You are here

public function EntityDisplayBase::getOriginalMode in Drupal 9

Same name and namespace in other branches
  1. 8 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 218

Class

EntityDisplayBase
Provides a common base class for entity view and form displays.

Namespace

Drupal\Core\Entity

Code

public function getOriginalMode() {
  return $this
    ->get('originalMode');
}