Results
16.10.2020
mutual_credit 5.0.x-dev ::
src/Entity/Access/TransactionAccessControlHandler.php
*/
public function createAccess($entity_bundle = NULL, ?AccountInterface $account = NULL, array $context = [], $return_as_object = FALSE) {
@trigger_error('hook_old_hook is deprecated in drupal:10 and is removed from drupal:11. Use service mcapi.mc_transaction.create_access instead', E_USER_DEPRECATED);
return \Drupal::service('mcapi.mc_transaction.create_access')->access(Workflow::load('fallback'), $account);
}
} 15.10.2020
name 8.x-1.x-dev ::
src/NameFormatter.php
public function getLastDelimitorTypes($include_examples = TRUE) {
// cspell:ignore delimitor
@trigger_error('getLastDelimitorTypes() is deprecated in name:8.x-1.1 and is removed from name:2.0.0. use getLastDelimiterTypes(). See https://www.drupal.org/project/name/issues/3518599', E_USER_DEPRECATED);
return $this->getLastDelimiterTypes($include_examples);
}
/**
* {@inheritdoc}
*/
public function getLastDelimitorBehaviors($include_examples = TRUE) {
// cspell:ignore delimitor
@trigger_error('getLastDelimitorBehaviors() is deprecated in name:8.x-1.1 and is removed from name:2.0.0. use getLastDelimiterBehaviors(). See https://www.drupal.org/project/name/issues/3518599', E_USER_DEPRECATED);
return $this->getLastDelimiterBehaviors($include_examples);
}
/**
* {@inheritdoc}
*/ 12.02.2021
next 1.0.0-alpha2 ::
src/Form/NextEntityTypeConfigForm.php
public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info, SiteResolverManagerInterface $site_resolver_manager, ?RevalidatorManagerInterface $revalidator_manager = NULL) {
if (!$revalidator_manager) {
@trigger_error('Calling NextEntityTypeConfigForm::__construct() without the $revalidator_manager argument is deprecated in next:1.4.0 and will be required in next:2.0.0. See https://www.drupal.org/node/3325622', E_USER_DEPRECATED);
// @codingStandardsIgnoreStart
$revalidator_manager = \Drupal::service('plugin.manager.next.revalidator');
// @codingStandardsIgnoreEnd
}
$this->entityTypeManager = $entity_type_manager; 12.02.2021
next 1.0.0-alpha2 ::
modules/next_extras/next_extras.module
*/
function _next_extras_invalidate_entity_cache(EntityInterface $entity, array $paths) {
@trigger_error(__FUNCTION__ . '() is deprecated in next:1.4.0 and is removed from next:1.5.0. https://www.drupal.org/project/next/releases/1.4.0', E_USER_DEPRECATED);
/** @var \Drupal\next_extras\NextCacheInvalidator $next_cache_invalidator */
$next_cache_invalidator = \Drupal::service('next_extras.cache_invalidator');
$sites = $next_cache_invalidator->getSitesToInvalidate($entity);
if (!$sites) {
return; 15.09.2020
oauth2_server 2.0.x-dev ::
src/OAuth2Storage.php
$this->time = $time;
if ($fileUrlGenerator === NULL) {
@trigger_error('Calling ' . __METHOD__ . ' without the $fileUrlGenerator argument is deprecated in oauth2_server:2.1.0 and it will be required in oauth2_server:3.0.0. See https://www.drupal.org/node/3288840', E_USER_DEPRECATED);
/* @phpstan-ignore-next-line */
$fileUrlGenerator = \Drupal::service('file_url_generator');
}
$this->fileUrlGenerator = $fileUrlGenerator;
} 09.08.2020
og 8.x-1.x-dev ::
src/Attribute/OgGroupResolver.php
) {
if (is_string($label)) {
@trigger_error('Passing $label as string to ' . __METHOD__ . '() is deprecated in og:2.0.0 and is removed from og:3.0.0. Pass the label as translatable markup instead. See https://www.drupal.org/node/3503794', E_USER_DEPRECATED);
}
}
} 09.08.2020
og 8.x-1.x-dev ::
src/MembershipManager.php
public function getUserGroupIds($user_id, array $states = [OgMembershipInterface::STATE_ACTIVE]) {
if ($user_id instanceof AccountInterface) {
@trigger_error('Passing an account object is deprecated in og:8.1.0-alpha4 and is removed from og:8.1.0-beta1. Instead pass the user ID as an integer value. See https://github.com/Gizra/og/issues/542', E_USER_DEPRECATED);
$user_id = $user_id->id();
}
$group_ids = [];
/** @var \Drupal\og\Entity\OgMembership[] $memberships */
$memberships = $this->getMemberships($user_id, $states);
public function getUserGroups($user_id, array $states = [OgMembershipInterface::STATE_ACTIVE]) {
if ($user_id instanceof AccountInterface) {
@trigger_error('Passing an account object is deprecated in og:8.1.0-alpha4 and is removed from og:8.1.0-beta1. Instead pass the user ID as an integer value. See https://github.com/Gizra/og/issues/542', E_USER_DEPRECATED);
$user_id = $user_id->id();
}
$group_ids = $this->getUserGroupIds($user_id, $states);
return $this->loadGroups($group_ids);
}
public function getMemberships($user_id, array $states = [OgMembershipInterface::STATE_ACTIVE]) {
if ($user_id instanceof AccountInterface) {
@trigger_error('Passing an account object is deprecated in og:8.1.0-alpha4 and is removed from og:8.1.0-beta1. Instead pass the user ID as an integer value. See https://github.com/Gizra/og/issues/542', E_USER_DEPRECATED);
$user_id = $user_id->id();
}
// When an empty array is passed, retrieve memberships with all possible
// states.
$states = $this->prepareConditionArray($states, OgMembership::ALL_STATES);
public function getMembership(EntityInterface $group, $user_id, array $states = [OgMembershipInterface::STATE_ACTIVE]) {
if ($user_id instanceof AccountInterface) {
@trigger_error('Passing an account object is deprecated in og:8.1.0-alpha4 and is removed from og:8.1.0-beta1. Instead pass the user ID as an integer value. See https://github.com/Gizra/og/issues/542', E_USER_DEPRECATED);
$user_id = $user_id->id();
}
if ($group->isNew()) {
return NULL;
}
public function getUserGroupIdsByRoleIds($user_id, array $role_ids, array $states = [OgMembershipInterface::STATE_ACTIVE], bool $require_all_roles = TRUE): array {
if ($user_id instanceof AccountInterface) {
@trigger_error('Passing an account object is deprecated in og:8.1.0-alpha4 and is removed from og:8.1.0-beta1. Instead pass the user ID as an integer value. See https://github.com/Gizra/og/issues/542', E_USER_DEPRECATED);
$user_id = $user_id->id();
}
/** @var \Drupal\og\OgMembershipInterface[] $memberships */
$memberships = $this->getMemberships($user_id, $states);
$memberships = array_filter($memberships, function (OgMembershipInterface $membership) use ($role_ids, $require_all_roles): bool {
public function getUserGroupsByRoleIds($user_id, array $role_ids, array $states = [OgMembershipInterface::STATE_ACTIVE], bool $require_all_roles = TRUE): array {
if ($user_id instanceof AccountInterface) {
@trigger_error('Passing an account object is deprecated in og:8.1.0-alpha4 and is removed from og:8.1.0-beta1. Instead pass the user ID as an integer value. See https://github.com/Gizra/og/issues/542', E_USER_DEPRECATED);
$user_id = $user_id->id();
}
$group_ids = $this->getUserGroupIdsByRoleIds($user_id, $role_ids, $states, $require_all_roles);
return $this->loadGroups($group_ids);
}
public function isMember(EntityInterface $group, $user_id, array $states = [OgMembershipInterface::STATE_ACTIVE]) {
if ($user_id instanceof AccountInterface) {
@trigger_error('Passing an account object is deprecated in og:8.1.0-alpha4 and is removed from og:8.1.0-beta1. Instead pass the user ID as an integer value. See https://github.com/Gizra/og/issues/542', E_USER_DEPRECATED);
$user_id = $user_id->id();
}
if ($group->isNew()) {
return FALSE;
}
public function isMemberPending(EntityInterface $group, $user_id) {
if ($user_id instanceof AccountInterface) {
@trigger_error('Passing an account object is deprecated in og:8.1.0-alpha4 and is removed from og:8.1.0-beta1. Instead pass the user ID as an integer value. See https://github.com/Gizra/og/issues/542', E_USER_DEPRECATED);
$user_id = $user_id->id();
}
return $this->isMember($group, $user_id, [OgMembershipInterface::STATE_PENDING]);
}
public function isMemberBlocked(EntityInterface $group, $user_id) {
if ($user_id instanceof AccountInterface) {
@trigger_error('Passing an account object is deprecated in og:8.1.0-alpha4 and is removed from og:8.1.0-beta1. Instead pass the user ID as an integer value. See https://github.com/Gizra/og/issues/542', E_USER_DEPRECATED);
$user_id = $user_id->id();
}
return $this->isMember($group, $user_id, [OgMembershipInterface::STATE_BLOCKED]);
} 09.08.2020
og 8.x-1.x-dev ::
src/OgAccess.php
*/
public function reset(): void {
@trigger_error('OgAccessInterface::reset() is deprecated in og:8.1.0-alpha6 and is removed from og:8.1.0-beta1. The static cache has been removed and this method no longer serves any purpose. Any calls to this method can safely be removed. See https://github.com/Gizra/og/issues/654', E_USER_DEPRECATED);
}
} 18.08.2020
opigno_module 8.x-1.9 ::
src/Plugin/views/field/OpignoModuleResultActions.php
if (!$entity_repository) {
@trigger_error('Calling EntityOperations::__construct() with the $entity_repository argument is supported in drupal:8.7.0 and will be required before drupal:9.0.0. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED);
$entity_repository = \Drupal::service('entity.repository');
}
$this->entityRepository = $entity_repository;
}
/** 16.02.2020
paragraphs 8.x-1.11 ::
src/Plugin/migrate/source/d7/ParagraphsType.php
// layer for addDescription which should be deprecated.
if (isset($configuration['addDescription'])) {
@trigger_error("addDescription configuration key is deprecated in 8.x-1.0 and will be removed prior to 9.x. Use add_description instead. See https://www.drupal.org/project/paragraphs/issues/2911242", E_USER_DEPRECATED);
if (!isset($configuration['add_description'])) {
$configuration['add_description'] = $configuration['addDescription'];
}
unset($configuration['addDescription']);
} 16.02.2020
paragraphs 8.x-1.11 ::
src/Plugin/migrate/source/d7/ParagraphType.php
@trigger_error('\Drupal\paragraphs\Plugin\migrate\source\d7\ParagraphType is deprecated in Paragraphs 8.x-1.0 and will be removed before 9.x use
* \Drupal\paragraphs\Plugin\migrate\source\d7\ParagraphsType instead. See https://www.drupal.org/project/paragraphs/issues/2911242', E_USER_DEPRECATED);
/**
* Paragraphs Type source plugin.
*
* @deprecated in Paragraphs 8.x-1.0 and will be removed before 9.x use
* \Drupal\paragraphs\Plugin\migrate\source\d7\ParagraphsType instead. 16.02.2020
paragraphs 8.x-1.11 ::
src/Plugin/migrate/source/d7/FieldCollectionType.php
// layer for addDescription which should be deprecated.
if (isset($configuration['addDescription'])) {
@trigger_error("addDescription configuration key is deprecated in 8.x-1.0 and will be removed prior to 9.x. Use add_description instead. See https://www.drupal.org/project/paragraphs/issues/2911242", E_USER_DEPRECATED);
if (!isset($configuration['add_description'])) {
$configuration['add_description'] = $configuration['addDescription'];
}
unset($configuration['addDescription']);
} 27.05.2020
password_policy_pwned 8.x-1.0-beta2 ::
src/Plugin/PasswordConstraint/PasswordPnwed.php
namespace Drupal\password_policy_pwned\Plugin\PasswordConstraint;
@trigger_error('The ' . __NAMESPACE__ . '\PasswordPnwed class is deprecated in password_policy_pwned:2.0.0 and is removed from password_policy_pwned:3.0.0. Use \Drupal\password_policy_pwned\Plugin\PasswordConstraint\PasswordPwned instead. See https://www.drupal.org/node/3434839', E_USER_DEPRECATED);
// cspell:ignore pnwed
/**
* Enforces that a password was not exposed through data breaches.
* 28.04.2020
pathauto 8.x-1.8 ::
pathauto.module
*/
function pathauto_pattern_validate($element, FormStateInterface $form_state) {
@trigger_error(__FUNCTION__ . '() is deprecated in pathauto:8.x-1.15 and is removed from pathauto:2.0.0. Use \Drupal\pathauto\Form\PatternEditForm::validatePattern() instead. See https://www.drupal.org/node/3550710', E_USER_DEPRECATED);
return PatternEditForm::validatePattern($element, $form_state);
}
/**
* Implements hook_token_info().
*/ 03.03.2024
pdf_to_imagefield 1.0.x-dev ::
src/PDFToImageBatchHelper.php
if ($guesser instanceof MimeTypeGuesserInterface) {
$file->setMimeType($guesser->guessMimeType($prepared_filename));
@trigger_error('\Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. Implement \Symfony\Component\Mime\MimeTypeGuesserInterface instead. See https://www.drupal.org/node/3133341', E_USER_DEPRECATED);
}
$file->setFileUri($image_temp_path);
$file->setSize(@filesize($image_temp_path));
$file->setFileUri($file_uri);
// Move the file to the correct location after validation. Use 14.01.2021
permission_group 1.0.x-dev ::
src/Entity/PermissionGroup.php
$invalid_permissions = array_diff($this->permissions, $valid_permissions);
if (!empty($invalid_permissions) && !$this->get('skip_missing_permission_deprecation')) {
@trigger_error('Adding non-existent permissions to a permission group is deprecated in drupal:9.3.0 and triggers a runtime exception before drupal:10.0.0. The incorrect permissions are "' . implode('", "', $invalid_permissions) . '". Permissions should be defined in a permissions.yml file or a permission callback. See https://www.drupal.org/node/3193348', E_USER_DEPRECATED);
}
foreach ($valid_permissions as $permission) {
// Depend on the module that is providing this permissions.
$this->addDependency('module', $permission_definitions[$permission]['provider']);
// Depend on any other dependencies defined by permissions granted to
// this role. 08.06.2020
persistent_login 8.x-1.3 ::
src/EventSubscriber/TokenHandler.php
if (empty($config_factory)) {
@trigger_error('config_factory will be a required parameter in persistent_login 2.x', E_USER_DEPRECATED);
$config_factory = \Drupal::service('config.factory');
}
$this->configFactory = $config_factory;
if (empty($current_user) || !($current_user instanceof AccountInterface)) {
$current_user = \Drupal::currentUser(); 16.05.2019
pluginformalter 8.x-1.x-dev ::
pluginformalter.module
foreach ($pluginManager->getInstance($options) as $plugin) {
if (version_compare(\Drupal::VERSION, '11.2', '>=')) {
@trigger_error('"FormAlter as a Plugin" module is deprecated. Your plugin "' . $plugin->getPluginId() . '" will stop being called in Drupal 12.0.0. Use OOP Hooks instead. See https://www.drupal.org/project/pluginformalter/issues/3549687', E_USER_DEPRECATED);
}
$plugin->formAlter($form, $form_state, $form_id);
}
}
/**
foreach ($pluginManager->getInstance($options) as $plugin) {
if (version_compare(\Drupal::VERSION, '11.2', '>=')) {
@trigger_error('"FormAlter as a Plugin" module is deprecated. Your plugin "' . $plugin->getPluginId() . '" will stop being called in Drupal 12.0.0. Use OOP Hooks instead. See https://www.drupal.org/project/pluginformalter/issues/3549687', E_USER_DEPRECATED);
}
$plugin->formAlter($form, $form_state, $form_id);
}
}
/**
foreach ($pluginManager->getInstance($options) as $plugin) {
if (version_compare(\Drupal::VERSION, '11.2', '>=')) {
@trigger_error('"FormAlter as a Plugin" module is deprecated. Your plugin "' . $plugin->getPluginId() . '" will stop being called in Drupal 12.0.0. Use OOP Hooks instead. See https://www.drupal.org/project/pluginformalter/issues/3549687', E_USER_DEPRECATED);
}
$plugin->formAlter($form, $form_state, $form_id);
}
} 20.09.2021
preview_site 1.1.2 ::
src/Deploy/DeployPluginBase.php
// rule. But in reality any plugin that doesn't implement this is probably
// not going to work.
@trigger_error('Deploy plugins are expected to implement \Drupal\preview_site\Deploy\DeployPluginInterface::deployFilePath', E_USER_DEPRECATED);
}
} 20.09.2021
preview_site 1.1.2 ::
src/PreviewSiteBuilder.php
$this->entityRepository = $entityRepository;
if (!$this->eventDispatcher) {
@trigger_error('Calling ' . __METHOD__ . ' without the $eventDispatcher argument is deprecated in preview_site:1.1.10 and will be required in preview_site:2.0.0. See https://www.drupal.org/node/3351768', E_USER_DEPRECATED);
$this->eventDispatcher = \Drupal::service('event_dispatcher');
}
}
/**
* {@inheritdoc} 