Change record status: 
Project: 
Introduced in branch: 
8.8.x
Introduced in version: 
8.8.0-alpha1
Description: 

In order to allow views to supply the options for entity reference fields, the ViewsSelection object needs access to the renderer service. To make this easily testable, the renderer needed to be injected in the constructor.

Code creating this object should use the ViewsSelection::create() method, which will require no changes. But if contrib modules are subclassing the ViewsSelection object, they may be required to change the signature of their __construct() method.

Before:

  public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, ModuleHandlerInterface $module_handler, AccountInterface $current_user) {
    ...
  }

After:

  public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, ModuleHandlerInterface $module_handler, AccountInterface $current_user, RendererInterface $renderer) {
    ...
  }
Impacts: 
Module developers