diff --git a/core/modules/field/tests/src/Functional/EntityReference/Views/SelectionTest.php b/core/modules/field/tests/src/Functional/EntityReference/Views/SelectionTest.php index f2961a3827..a0c1d867e8 100644 --- a/core/modules/field/tests/src/Functional/EntityReference/Views/SelectionTest.php +++ b/core/modules/field/tests/src/Functional/EntityReference/Views/SelectionTest.php @@ -94,7 +94,7 @@ protected function setUp() { */ public function testAnchorTagStripping() { // Get values from selection handler. - $handler = $this->container->get('plugin.manager.entity_reference_selection')->getSelectionHandler($this->field); + $handler = \Drupal::service('plugin.manager.entity_reference_selection')->getSelectionHandler($this->field); $display_execution_results = $handler->getReferenceableEntities(); $filtered_rendered_results_formatted = []; diff --git a/core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php b/core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php index 15fdbb3032..e09fca6874 100644 --- a/core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php +++ b/core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php @@ -85,7 +85,7 @@ class ViewsSelection extends SelectionPluginBase implements ContainerFactoryPlug * @param \Drupal\Core\Session\AccountInterface $current_user * The current user. * @param \Drupal\Core\Render\RendererInterface|null $renderer - * The renderer. + * (Optional) The renderer. */ public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, ModuleHandlerInterface $module_handler, AccountInterface $current_user, RendererInterface $renderer = NULL) { parent::__construct($configuration, $plugin_id, $plugin_definition); @@ -95,7 +95,7 @@ public function __construct(array $configuration, $plugin_id, $plugin_definition $this->currentUser = $current_user; if (!$renderer) { - @trigger_error('Calling ViewsSelection::__construct() with the $renderer argument is supported in drupal:8.7.0 and will be required before drupal:9.0.0.', E_USER_DEPRECATED); + @trigger_error('Calling ViewsSelection::__construct() with the $renderer argument is supported in drupal:8.8.0 and will be required before drupal:9.0.0.', E_USER_DEPRECATED); $renderer = \Drupal::service('renderer'); } $this->renderer = $renderer;