public function EntityDisplayBase::getMode in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/EntityDisplayBase.php \Drupal\Core\Entity\EntityDisplayBase::getMode()
- 9 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
2 calls to EntityDisplayBase::getMode()
- LayoutBuilderEntityViewDisplay::getContextsForEntity in core/
modules/ layout_builder/ src/ Entity/ LayoutBuilderEntityViewDisplay.php - Gets the available contexts for a given entity.
- LayoutBuilderEntityViewDisplay::removeSectionField in core/
modules/ layout_builder/ src/ Entity/ LayoutBuilderEntityViewDisplay.php - Removes a layout section field if it is no longer needed.
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');
}