function EntityDisplayBase::removeComponent
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityDisplayBase.php \Drupal\Core\Entity\EntityDisplayBase::removeComponent()
- 10 core/lib/Drupal/Core/Entity/EntityDisplayBase.php \Drupal\Core\Entity\EntityDisplayBase::removeComponent()
- 11.x core/lib/Drupal/Core/Entity/EntityDisplayBase.php \Drupal\Core\Entity\EntityDisplayBase::removeComponent()
Overrides EntityDisplayInterface::removeComponent
4 calls to EntityDisplayBase::removeComponent()
- EntityDisplayBase::handleHiddenType in core/
lib/ Drupal/ Core/ Entity/ EntityDisplayBase.php - Handles a component type of 'hidden'.
- EntityDisplayBase::init in core/
lib/ Drupal/ Core/ Entity/ EntityDisplayBase.php - Initializes the display.
- EntityDisplayBase::onDependencyRemoval in core/
lib/ Drupal/ Core/ Entity/ EntityDisplayBase.php - Informs the entity that entities it depends on will be deleted.
- EntityDisplayBase::preSave in core/
lib/ Drupal/ Core/ Entity/ EntityDisplayBase.php - Acts on an entity before the presave hook is invoked.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityDisplayBase.php, line 398
Class
- EntityDisplayBase
- Provides a common base class for entity view and form displays.
Namespace
Drupal\Core\EntityCode
public function removeComponent($name) {
$this->hidden[$name] = TRUE;
unset($this->content[$name]);
unset($this->plugins[$name]);
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.