Overrides Entity::__construct().
Overrides EntityDisplayBase::__construct
File
- drupal/core/modules/entity/lib/Drupal/entity/Plugin/Core/Entity/EntityDisplay.php, line 38
- Contains \Drupal\entity\Plugin\Core\Entity\EntityDisplay.
Class
- EntityDisplay
- Configuration entity that contains display options for all components of a
rendered entity in a given view mode.
Namespace
Drupal\entity\Plugin\Core\Entity
Code
public function __construct(array $values, $entity_type) {
$this->pluginManager = \Drupal::service('plugin.manager.field.formatter');
$this->displayContext = 'display';
parent::__construct($values, $entity_type);
}