public function EntityDisplayBase::getMode in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/EntityDisplayBase.php \Drupal\Core\Entity\EntityDisplayBase::getMode()
Gets the view or form mode to be displayed.
Return value
string The mode to be displayed.
Overrides EntityDisplayInterface::getMode
1 call to EntityDisplayBase::getMode()
- LayoutBuilderEntityViewDisplay::getContextsForEntity in core/
modules/ layout_builder/ src/ Entity/ LayoutBuilderEntityViewDisplay.php - Gets the available contexts for a given entity.
File
- core/
lib/ Drupal/ Core/ Entity/ EntityDisplayBase.php, line 211
Class
- EntityDisplayBase
- Provides a common base class for entity view and form displays.
Namespace
Drupal\Core\EntityCode
public function getMode() {
return $this
->get('mode');
}