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