Results
20.10.2020
charts 8.x-4.x-dev ::
src/Plugin/chart/Library/ChartBase.php
// @phpstan-ignore-next-line
$module_handler = \Drupal::service('module_handler');
@trigger_error('Calling ChartBase::__construct() without the $module_handler as an instance of ModuleHandlerInterface is deprecated in charts:5.1.6 and is required in charts:6.0.0. See https://www.drupal.org/project/charts/issues/3518027', E_USER_DEPRECATED);
}
$this->moduleHandler = $module_handler;
}
/**
* {@inheritdoc} 17.10.2020
coder 8.x-3.x-dev ::
coder_sniffer/Drupal/Sniffs/Semantics/UnsilencedDeprecationSniff.php
// Only check deprecation messages.
if (strcasecmp($tokens[$argument['start']]['content'], 'E_USER_DEPRECATED') !== 0) {
return;
}
if ($tokens[($stackPtr - 1)]['type'] !== 'T_ASPERAND') {
$error = 'All trigger_error calls used for deprecation must be prefixed by an "@"';
$fix = $phpcsFile->addFixableError($error, $stackPtr, 'UnsilencedDeprecation'); 17.10.2020
coder 8.x-3.x-dev ::
coder_sniffer/Drupal/Sniffs/Semantics/FunctionTriggerErrorSniff.php
// Only check deprecation messages.
if (strcasecmp($tokens[$this->getArgument(2)['start']]['content'], 'E_USER_DEPRECATED') !== 0) {
return;
}
// Get the first argument passed to trigger_error().
$argument = $this->getArgument(1); 17.09.2020
commerce_add_to_cart_link 2.0.0 ::
src/AddToCartLink.php
$this->cartLinkToken = $cart_link_token;
if (is_null($this->cartLinkToken)) {
@trigger_error('Calling ' . __METHOD__ . ' without the $cart_link_token argument is deprecated in commerce_add_to_cart_link:2.1.0 and it will be required in commerce_add_to_cart_link:2.2.0. See https://www.drupal.org/node/3512138', E_USER_DEPRECATED);
// @phpstan-ignore-next-line
$this->cartLinkToken = \Drupal::service('commerce_add_to_cart_link.token');
}
}
/** 10.09.2018
commerce_amws 8.x-1.x-dev ::
src/Entity/ConfigEntityPublishedTrait.php
@trigger_error(
'The $published parameter is deprecated since core version 8.3.x and will be removed in 9.0.0.',
E_USER_DEPRECATED
);
$value = (bool) $published;
}
else {
$value = TRUE;
} 19.10.2020
commerce_dibs 8.x-1.0-rc10 ::
src/Plugin/Commerce/PaymentGateway/EasyHostedPaymentPage.php
*/
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, PaymentTypeManager $payment_type_manager, PaymentMethodTypeManager $payment_method_type_manager, TimeInterface $time) {
@trigger_error('\Drupal\commerce_dibs\Plugin\Commerce\PaymentGateway\EasyHostedPaymentPage in commerce_dibs:8.x-1.0-rc16 and is removed from commerce_dibs:8.x-2.0. Use commerce_easy instead. See https://www.drupal.org/project/commerce_easy', E_USER_DEPRECATED);
parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_manager, $payment_type_manager, $payment_method_type_manager, $time);
}
/**
* Sets the lock service.
* 24.07.2020
commerce_google_tag_manager 8.x-2.0-beta1 ::
tests/src/Traits/DeprecationSuppressionTrait.php
return $previous_error_handler($severity, $message, $file, $line);
}
}, E_USER_DEPRECATED);
}
/**
* Restores the original error handler.
*/
protected function restoreErrorHandler() { 16.08.2020
commerce_trustedshops 8.x-2.x-dev ::
tests/src/Traits/DeprecationSuppressionTrait.php
return $previous_error_handler($severity, $message, $file, $line);
}
}, E_USER_DEPRECATED | E_DEPRECATED);
}
/**
* Restores the original error handler.
*/
protected function restoreErrorHandler() { 27.05.2020
computed_field 8.x-2.x-dev ::
src/Field/FieldStorageDefinition.php
*/
public function isQueryable() {
@trigger_error('FieldStorageDefinitionInterface::isQueryable() is deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. Instead, you should use ::hasCustomStorage(). See https://www.drupal.org/node/2856563.', E_USER_DEPRECATED);
return !$this->hasCustomStorage();
}
/**
* {@inheritdoc}
*/ 23.06.2020
config_provider 8.x-2.0-rc4 ::
src/Plugin/ConfigCollector.php
$this->installProfile = $install_profile;
if (!$extension_path_resolver instanceof ExtensionPathResolver) {
@trigger_error('Calling ConfigCollector::__construct() without the $extension_path_resolver argument is deprecated in config_provider:3.0.0-alpha2 and it will be required in config_provider:3.1.0. See https://www.drupal.org/project/config_provider/issues/3511302', E_USER_DEPRECATED);
}
$this->extensionPathResolver = $extension_path_resolver;
$this->configProviders = [];
}
/** 23.06.2020
config_provider 8.x-2.0-rc4 ::
src/Plugin/ConfigProviderBase.php
*/
protected function drupalGetPath(string $type, string $name) {
@trigger_error(__METHOD__ . '() is deprecated in config_provider:3.0.0-alpha2 and is removed from config_provider:3.1.0. ConfigProviderBase::extensionPathResolver::getPath() should be used instead. See https://www.drupal.org/project/config_provider/issues/3500568', E_USER_DEPRECATED);
return $this->extensionPathResolver->getPath($type, $name);
}
/**
* Gets the install profile from settings.
*
*/
protected function drupalGetProfile() {
@trigger_error(__METHOD__ . '() is deprecated in config_provider:3.0.0-alpha2 and is removed from config_provider:3.1.0. ConfigProviderBase::installProfile should be used instead. See https://www.drupal.org/project/config_provider/issues/3500568', E_USER_DEPRECATED);
return $this->installProfile;
}
/**
* Adds default_config_hash for proper localization of the config objects.
* 13.08.2019
consumer_image_styles 8.x-3.0 ::
src/ImageStylesProvider.php
$this->fileUrlGenerator = $file_url_generator;
if (!$stream_wrapper_manager) {
@trigger_error(sprintf('Invoking %s without $stream_wrapper_manager is deprecated in consumer_image_styles:4.0.6 and is unsupported in consumer_image_styles:5.0.0. See https://www.drupal.org/project/consumer_image_styles/issues/3252023', __FUNCTION__), E_USER_DEPRECATED);
// @phpstan-ignore-next-line as used on purpose.
$stream_wrapper_manager = \Drupal::service('stream_wrapper_manager');
}
$this->streamWrapperManager = $stream_wrapper_manager;
}
public function buildDerivativeLink($uri, ImageStyleInterface $image_style, ?CacheableMetadata $cacheable_metadata = NULL) {
if (is_null($cacheable_metadata)) {
@trigger_error(sprintf('Calling %s without $cacheable_metadata is deprecated in consumer_image_styles:4.0.6 and is required in consumer_image_styles:5.0.0. See https://www.drupal.org/project/consumer_image_styles/issues/3252023', __METHOD__), E_USER_DEPRECATED);
$cacheable_metadata = new CacheableMetadata();
}
$cacheable_metadata->addCacheableDependency($image_style);
$info = [
'href' => $this->fileUrlGenerator->generateAbsoluteString($image_style->buildUrl($uri)),
'title' => $this->t('Image Style: @name', ['@name' => $image_style->label()]), 07.10.2020
contacts 8.x-1.x-dev ::
modules/group/src/Plugin/Block/ContactOrgRelationshipFormBlock.php
// over to content_roles and trigger a deprecation.
if (!empty($configuration['member_roles'])) {
@trigger_error("Configuration 'member_roles' is deprecated in contacts:8.x-1.0 and is removed from contacts:2.0.0. Use 'content_roles' instead.", \E_USER_DEPRECATED);
$configuration['content_roles'] = $configuration['member_roles'];
unset($configuration['member_roles']);
}
// That change also switched from 'member' to 'content', so trigger a
// deprecation and fix tweak the configuration.
if (isset(self::PROVIDES_LEGACY[$configuration['provides']])) {
$old_value = $configuration['provides'];
$configuration['provides'] = self::PROVIDES_LEGACY[$configuration['provides']];
@trigger_error("Configuration '{$old_value}' is deprecated in contacts:8.x-1.0 and is removed from contacts:2.0.0. Use '{$configuration['provides']}' instead.", \E_USER_DEPRECATED);
}
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->entityTypeManager = $entity_type_manager;
$this->formBuilder = $form_builder;
$this->request = $request_stack->getCurrentRequest(); 27.08.2020
content_moderation_bypass 8.x-1.0-alpha6 ::
src/ContentModerationBypass/ContentModerationBypassStateTransitionValidation.php
if ($entity === NULL) {
@trigger_error(sprintf('Omitting the $entity parameter from %s is deprecated and will be required in Drupal 9.0.0.', __METHOD__), E_USER_DEPRECATED);
}
$transition = $workflow->getTypePlugin()->getTransitionFromStateToState($original_state->id(), $new_state->id());
return $user->hasPermission('use ' . $workflow->id() . ' transition ' . $transition->id());
}
} 23.11.2020
content_moderation_permissions 1.0.0 ::
src/StateTransitionValidation.php
public function isTransitionValid(WorkflowInterface $workflow, StateInterface $original_state, StateInterface $new_state, AccountInterface $user, ContentEntityInterface $entity = NULL) {
if ($entity === NULL) {
@trigger_error('Omitting the $entity parameter from isTransitionValid is deprecated in drupal:8.9.0 and will be required in drupal:9.0.0. $entity parameter will be mandatory on drupal:9.0.0. See https://www.drupal.org/node/3026087', E_USER_DEPRECATED);
}
$transition = $workflow->getTypePlugin()->getTransitionFromStateToState($original_state->id(), $new_state->id());
// Check if the permission is given globally.
if ($user->hasPermission('use ' . $workflow->id() . ' transition ' . $transition->id())) {
return $user->hasPermission('use ' . $workflow->id() . ' transition ' . $transition->id()); 30.03.2020
crop 8.x-2.x-dev ::
src/Entity/Crop.php
public static function getCropFromImageStyle($uri, ImageStyleInterface $image_style) {
//phpcs:ignore Drupal.Semantics.FunctionTriggerError.TriggerErrorTextLayoutRelaxed
@trigger_error('Crop::getCropFromImageStyle() is deprecated, use Crop::getCropFromImageStyleId() instead.', E_USER_DEPRECATED);
return static::getCropFromImageStyleId($uri, $image_style->id());
}
/**
* {@inheritdoc}
*/ 25.08.2020
cshs 8.x-1.x-dev ::
src/Component/CshsOption.php
"for \"\$element['#options'] = [12 => new CshsOption('Audi Q8', '4')];\".",
]),
\E_USER_DEPRECATED,
);
$option = new static($option['name'] ?? '', $option['parent_tid'] ?? NULL, $option['group'] ?? NULL);
}
elseif (!($option instanceof static)) {
throw new \RuntimeException(\sprintf( 16.09.2020
custom_elements 8.x-2.x-dev ::
src/CustomElement.php
// We do not support passing render arrays directly anymore.
if (is_array($value)) {
@trigger_error('Setting slot value to an array is deprecated in custom_elements:8.x-2.0 (alpha13) and is removed from custom_elements:8.x-3.0. Provide a CustomElement, MarkupInterface or a markup string. Treating content as a render array. See https://www.drupal.org/project/custom_elements/issues/3144191', E_USER_DEPRECATED);
return $this->setSlotFromRenderArray($key, $value, $tag, $attributes, $index, $weight);
}
if (!isset($index)) {
$index = 0;
$this->setSlotNormalizationStyle($key, self::NORMALIZE_AS_SINGLE_VALUE); 09.10.2020
dashboards 8.x-1.0-beta10 ::
src/Plugin/SectionStorage/DashboardSectionStorage.php
*/
public function getSectionListFromId($id) {
@trigger_error('\Drupal\layout_builder\SectionStorageInterface::getSectionListFromId() is deprecated in drupal:8.7.0 and is removed from drupal:9.0.0. The section list should be derived from context. See https://www.drupal.org/node/3016262', E_USER_DEPRECATED);
return $this->entityTypeManager->getStorage('dashboard')->load($id);
}
/**
* {@inheritdoc}
*/ 16.08.2021
data_pipelines 1.x-dev ::
src/Entity/Dataset.php
*/
public function data(): \Generator {
@trigger_error(sprintf('Calling %s is deprecated in data_pipelines:1.0.0-alpha19 and removed in data_pipelines:2.0.0. Use ::getDataIterator instead. See https://www.drupal.org/project/data_pipelines/issues/3361740', __METHOD__), E_USER_DEPRECATED);
$source = $this->getSource();
$pipeline = $this->getPipeline();
foreach ($source->extractDataFromDataSet($this) as $data) {
yield $pipeline->transform($data);
}
} 