You are here

public function EntityDisplayBase::getOriginalMode in Zircon Profile 8

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

File

core/lib/Drupal/Core/Entity/EntityDisplayBase.php, line 217
Contains \Drupal\Core\Entity\EntityDisplayBase.

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');
}