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.
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);