function EntityDisplayBase::getMode
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityDisplayBase.php \Drupal\Core\Entity\EntityDisplayBase::getMode()
- 8.9.x core/lib/Drupal/Core/Entity/EntityDisplayBase.php \Drupal\Core\Entity\EntityDisplayBase::getMode()
- 10 core/lib/Drupal/Core/Entity/EntityDisplayBase.php \Drupal\Core\Entity\EntityDisplayBase::getMode()
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 224
Class
- EntityDisplayBase
- Provides a common base class for entity view and form displays.
Namespace
Drupal\Core\EntityCode
public function getMode() {
return $this->get('mode');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.