function EntityDisplayBase::getOriginalMode

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityDisplayBase.php \Drupal\Core\Entity\EntityDisplayBase::getOriginalMode()
  2. 10 core/lib/Drupal/Core/Entity/EntityDisplayBase.php \Drupal\Core\Entity\EntityDisplayBase::getOriginalMode()
  3. 11.x core/lib/Drupal/Core/Entity/EntityDisplayBase.php \Drupal\Core\Entity\EntityDisplayBase::getOriginalMode()

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\Entity

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.