public function EntityDisplayBaseInterface::removeComponent

Sets a component to be hidden.

Parameters

string $name: The name of the component.

Return value

\Drupal\entity\Plugin\Core\Entity\EntityDisplay The EntityDisplay object.

1 method overrides EntityDisplayBaseInterface::removeComponent()
EntityDisplayBase::removeComponent in drupal/core/modules/entity/lib/Drupal/entity/EntityDisplayBase.php
Sets a component to be hidden.

File

drupal/core/modules/entity/lib/Drupal/entity/EntityDisplayBaseInterface.php, line 73
Contains \Drupal\entity\Plugin\Core\Entity\EntityDisplayBaseInterface.

Class

EntityDisplayBaseInterface
Provides an interface defining an entity display entity.

Namespace

Drupal\entity

Code

public function removeComponent($name);