function EntityDisplayBase::getComponent
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Entity/EntityDisplayBase.php \Drupal\Core\Entity\EntityDisplayBase::getComponent()
1 method overrides EntityDisplayBase::getComponent()
- LayoutBuilderEntityViewDisplay::getComponent in core/
modules/ layout_builder/ src/ Entity/ LayoutBuilderEntityViewDisplay.php - Gets the display options set for a component.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityDisplayBase.php, line 333
Class
- EntityDisplayBase
- Provides a common base class for entity view and form displays.
Namespace
Drupal\Core\EntityCode
public function getComponent($name) {
return $this->content[$name] ?? NULL;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.