public function EntityDisplayBaseInterface::setComponent

Sets the display options for a component.

Parameters

string $name: The name of the component.

array $options: The display options.

Return value

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

1 method overrides EntityDisplayBaseInterface::setComponent()
EntityDisplayBase::setComponent in drupal/core/modules/entity/lib/Drupal/entity/EntityDisplayBase.php
Sets the display options for a component.

File

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

Class

EntityDisplayBaseInterface
Provides an interface defining an entity display entity.

Namespace

Drupal\entity

Code

public function setComponent($name, array $options = array());