Skip to content
Snippets Groups Projects
Commit 5e4893a0 authored by catch's avatar catch
Browse files

Issue #3443200 by smustgrave: Remove deprecated code from field + datetime modules

parent 3312771d
No related branches found
No related tags found
No related merge requests found
...@@ -47,12 +47,8 @@ public function __construct( ...@@ -47,12 +47,8 @@ public function __construct(
$plugin_definition, $plugin_definition,
RouteMatchInterface $route_match, RouteMatchInterface $route_match,
DateFormatterInterface $date_formatter, DateFormatterInterface $date_formatter,
?TimeInterface $time = NULL, TimeInterface $time,
) { ) {
if (!$time) {
@trigger_error('Calling ' . __METHOD__ . ' without the $time argument is deprecated in drupal:10.3.0 and it will be required in drupal:11.0.0. See https://www.drupal.org/node/3395991', E_USER_DEPRECATED);
$time = \Drupal::service('datetime.time');
}
parent::__construct($configuration, $plugin_id, $plugin_definition, $route_match, $date_formatter, $time); parent::__construct($configuration, $plugin_id, $plugin_definition, $route_match, $date_formatter, $time);
$definition = $this->getFieldStorageDefinition(); $definition = $this->getFieldStorageDefinition();
......
<?php
declare(strict_types=1);
namespace Drupal\Tests\field\Traits;
@trigger_error('The ' . __NAMESPACE__ . '\EntityReferenceTestTrait is deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Instead, use \Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait. See https://www.drupal.org/node/3401941', E_USER_DEPRECATED);
/**
* Provides common functionality for the EntityReference test classes.
*
* @deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use
* \Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait instead.
*
* @see https://www.drupal.org/node/3401941
*/
trait EntityReferenceTestTrait {
use EntityReferenceFieldCreationTrait;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment