Results
11.02.2020
cilogon_auth 8.x-1.1 ::
cilogon_auth.module
*/
function cilogon_auth_save_userinfo(UserInterface $account, array $userinfo) {
@trigger_error('cilogon_auth_save_userinfo() is deprecated and will be removed in 8.x-1.x-rc1.', E_USER_DEPRECATED);
\Drupal::service('cilogon_auth.cilogon_auth')->saveUserinfo($account, $userinfo);
}
/**
* Logs in a user.
*
*/
function cilogon_auth_login_user(UserInterface $account) {
@trigger_error('cilogon_auth_login_user() is deprecated and will be removed in 8.x-1.x-rc1.', E_USER_DEPRECATED);
user_login_finalize($account);
}
/**
* Save the current path in the session, for redirecting after authorization.
*
*/
function cilogon_auth_save_destination() {
@trigger_error('cilogon_auth_save_destination() is deprecated and will be removed in 8.x-1.x-rc1.', E_USER_DEPRECATED);
\Drupal::service('cilogon_auth.session')->saveDestination();
}
/**
* Creates a user indicating sub-id and login provider.
*
*/
function cilogon_auth_create_user($sub, array $userinfo, $client_name, $status = 1) {
@trigger_error('cilogon_auth_create_user() is deprecated and will be removed in 8.x-1.x-rc1.', E_USER_DEPRECATED);
return \Drupal::service('cilogon_auth.cilogon_auth')->createUser($sub, $userinfo, $client_name, $status);
}
/**
* Generate a username for a new account.
*
*/
function cilogon_auth_generate_username($sub, array $userinfo, $client_name) {
@trigger_error('cilogon_auth_generate_username() is deprecated and will be removed in 8.x-1.x-rc1.', E_USER_DEPRECATED);
return \Drupal::service('cilogon_auth.cilogon_auth')->generateUsername($sub, $userinfo, $client_name);
}
/**
* Check if a user name already exists.
*
*/
function cilogon_auth_username_exists($name) {
@trigger_error('cilogon_auth_username_exists() is deprecated and will be removed in 8.x-1.x-rc1.', E_USER_DEPRECATED);
return \Drupal::service('cilogon_auth.cilogon_auth')->usernameExists($name);
}
/**
* Find whether the user is allowed to change their own password.
*
*/
function cilogon_auth_set_password_access($account) {
@trigger_error('cilogon_auth_set_password_access() is deprecated and will be removed in 8.x-1.x-rc1.', E_USER_DEPRECATED);
return \Drupal::service('cilogon_auth.cilogon_auth')->hasSetPasswordAccess($account);
}
/**
* Connect an external CILogon Auth account to a Drupal user account.
*
*/
function cilogon_auth_connect_account($account, $client_name, $sub, $idp_name) {
@trigger_error('cilogon_auth_connect_account() is deprecated and will be removed in 8.x-1.x-rc1.', E_USER_DEPRECATED);
\Drupal::service('cilogon_auth.authmap')->createAssociation($account, $client_name, $sub, $idp_name);
}
/**
* Disconnect an external CILogon Auth account from a Drupal user account.
*
*/
function cilogon_auth_disconnect_account($account, $client_name) {
@trigger_error('cilogon_auth_disconnect_account() is deprecated and will be removed in 8.x-1.x-rc1.', E_USER_DEPRECATED);
\Drupal::service('cilogon_auth.authmap')->deleteAssociation($account->id(), $client_name);
}
/**
* Get the 'sub' property from the user data and/or user claims.
*
*/
function cilogon_auth_extract_sub(array $user_data, array $userinfo) {
@trigger_error('cilogon_auth_extract_sub() is deprecated and will be removed in 8.x-1.x-rc1.', E_USER_DEPRECATED);
return \Drupal::service('cilogon_auth.cilogon_auth')->extractSub($user_data, $userinfo);
}
/**
* Complete the authorization after tokens have been retrieved.
*
*/
function cilogon_auth_complete_authorization($client, array $tokens, &$destination) {
@trigger_error('cilogon_auth_complete_authorization() is deprecated and will be removed in 8.x-1.x-rc1.', E_USER_DEPRECATED);
return \Drupal::service('cilogon_auth.cilogon_auth')->completeAuthorization($client, $tokens, $destination);
}
/**
* Connect the current user's account to an external provider.
*
*/
function cilogon_auth_connect_current_user($client, array $tokens) {
@trigger_error('cilogon_auth_connect_current_user() is deprecated and will be removed in 8.x-1.x-rc1.', E_USER_DEPRECATED);
return \Drupal::service('cilogon_auth.cilogon_auth')->connectCurrentUser($client, $tokens);
} 09.11.2019
cloud 8.x-2.0-beta1 ::
modules/cloud_service_providers/aws_cloud/src/Plugin/cloud/server_template/AwsCloudServerTemplatePluginUninstallValidator.php
TranslationInterface $string_translation) {
if ($entity_type_manager instanceof EntityManagerInterface) {
@trigger_error('Passing the entity.manager service to AwsCloudUninstallValidator::__construct() is deprecated in "Drupal 8.7.0" and will be removed before "Drupal 9.0.0". Pass the new dependencies instead. See https://www.drupal.org/node/2549139', E_USER_DEPRECATED);
$this->entityTypeManager = \Drupal::entityTypeManager();
}
else {
$this->entityTypeManager = $entity_type_manager;
} 17.07.2018
commerce 8.x-2.8 ::
src/EntityAccessControlHandler.php
namespace Drupal\commerce;
@trigger_error('The ' . __NAMESPACE__ . '\EntityAccessControlHandler is deprecated. Instead, use \Drupal\entity\EntityAccessControlHandler', E_USER_DEPRECATED);
use Drupal\entity\EntityAccessControlHandler as BaseEntityAccessControlHandler;
/**
* Controls access based on the Commerce entity permissions.
* 17.07.2018
commerce 8.x-2.8 ::
src/BundleFieldDefinition.php
namespace Drupal\commerce;
@trigger_error('The ' . __NAMESPACE__ . '\BundleFieldDefinition is deprecated. Instead, use \Drupal\entity\BundleFieldDefinition', E_USER_DEPRECATED);
use Drupal\entity\BundleFieldDefinition as EntityBundleFieldDefinition;
/**
* Provides a field definition class for bundle fields.
* 17.07.2018
commerce 8.x-2.8 ::
src/BundlePluginInterface.php
namespace Drupal\commerce;
@trigger_error('The ' . __NAMESPACE__ . '\BundlePluginInterface is deprecated. Instead, use \Drupal\entity\BundlePlugin\BundlePluginInterface', E_USER_DEPRECATED);
use Drupal\entity\BundlePlugin\BundlePluginInterface as BaseBundlePluginInterface;
/**
* Interface for plugins which act as entity bundles.
* 17.07.2018
commerce 8.x-2.8 ::
modules/price/src/NumberFormatterFactory.php
use CommerceGuys\Intl\Formatter\CurrencyFormatterInterface;
@trigger_error('The ' . __NAMESPACE__ . '\NumberFormatterFactory is deprecated. Instead, use \Drupal\commerce_price\CurrencyFormatter. See https://www.drupal.org/node/2975672.', E_USER_DEPRECATED);
/**
* Defines the NumberFormatter factory.
*
* @deprecated Use \Drupal\commerce_price\CurrencyFormatter instead.
*/ 28.09.2018
entity_reference_inline 8.x-1.x-dev ::
src/Plugin/Field/FieldWidget/EntityReferenceInlineWidget.php
else {
// This should never happen.
@trigger_error('The entity should be loaded from the field items instead from the meta information.', E_USER_DEPRECATED);
$entity = $this->loadEntityFromMetaInformation($delta_values);
}
// ContentEntityForm::buildEntity is cloning the main form entity and
// setting the submitted values on the cloned entity, so that the
// original one is not altered and on form rebuild the form is rebuild 26.05.2020
gcs 8.x-1.0-alpha3 ::
src/GcsFileSystem/GcsFileSystem.php
public function uriScheme($uri) {
error_log(__LINE__);
@trigger_error('FileSystem::uriScheme() is deprecated in drupal:8.8.0. It will be removed from drupal:9.0.0. Use \\Drupal\\Core\\StreamWrapper\\StreamWrapperManagerInterface::getScheme() instead. See https://www.drupal.org/node/3035273', E_USER_DEPRECATED);
return StreamWrapperManager::getScheme($uri);
}
/**
* {@inheritdoc}
*/
public function validScheme($scheme) {
error_log(__LINE__);
@trigger_error('FileSystem::validScheme() is deprecated in drupal:8.8.0 and will be removed before drupal:9.0.0. Use \\Drupal\\Core\\StreamWrapper\\StreamWrapperManagerInterface::isValidScheme() instead. See https://www.drupal.org/node/3035273', E_USER_DEPRECATED);
return $this->streamWrapperManager
->isValidScheme($scheme);
}
/**
* {@inheritdoc} 16.03.2020
gridstack 8.x-2.5 ::
src/GridStackSkinInterface.php
namespace Drupal\gridstack;
@trigger_error('The ' . __NAMESPACE__ . '\GridStackSkinInterface is deprecated in gridstack:8.x-2.0 and is removed from gridstack:8.x-2.5. Use \Drupal\gridstack\GridStackSkinPluginBase instead. See https://www.drupal.org/node/3107311', E_USER_DEPRECATED);
/**
* Provides an interface defining GridStack skins.
*
* The hook_hook_info() is deprecated, and no resolution by 1/16/16:
* #2233261: Deprecate hook_hook_info() 29.05.2019
jsonapi 8.x-2.x-dev ::
src/ForwardCompatibility/Normalizer/DateTimeIso8601Normalizer.php
if (isset($using_deprecated_format)) {
@trigger_error('The provided datetime string format (Y-m-d\\TH:i:s) is deprecated and will be removed before Drupal 9.0.0. Use the RFC3339 format instead (Y-m-d\\TH:i:sP).', E_USER_DEPRECATED);
}
$datetime->setTimezone(new \DateTimeZone(DateTimeItemInterface::STORAGE_TIMEZONE));
return $datetime->format(DateTimeItemInterface::DATETIME_STORAGE_FORMAT);
}
} 30.12.2019
lb_everywhere 8.x-1.x-dev ::
src/Plugin/SectionStorage/RegionSectionStorage.php
*/
public function getSectionListFromId($id) {
@trigger_error('\Drupal\layout_builder\SectionStorageInterface::getSectionListFromId() is deprecated in drupal:8.7.0. It will be removed before drupal:9.0.0. The section list should be derived from context. See https://www.drupal.org/node/3016262', E_USER_DEPRECATED);
}
/**
* {@inheritdoc}
*/
public function extractIdFromRoute($value, $definition, $name, array $defaults) {
*/
public function extractIdFromRoute($value, $definition, $name, array $defaults) {
@trigger_error('\Drupal\layout_builder\SectionStorageInterface::extractIdFromRoute() is deprecated in drupal:8.7.0. It will be removed before drupal:9.0.0. \Drupal\layout_builder\SectionStorageInterface::deriveContextsFromRoute() should be used instead. See https://www.drupal.org/node/3016262', E_USER_DEPRECATED);
}
} 12.06.2020
link_preview 8.x-1.4 ::
src/Plugin/Field/FieldType/LinkPreviewItem.php
// this, options must not be passed as a string anymore.
if (is_string($values['options'])) {
@trigger_error('Support for passing options as a serialized string is deprecated in 8.7.0 and will be removed before Drupal 9.0.0. Pass them as an array instead. See https://www.drupal.org/node/2961643.', E_USER_DEPRECATED);
$values['options'] = unserialize($values['options'], ['allowed_classes' => FALSE]);
}
parent::setValue($values, $notify);
}
/** 17.12.2019
replace 8.x-1.0 ::
src/Controller/NodeController.php
$this->renderer = $renderer;
if (!$entity_repository) {
@trigger_error('The entity.repository service must be passed to NodeController::__construct(), it is 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;
}
/**
*/
public function replace(NodeTypeInterface $node_type) {
@trigger_error(__METHOD__ . ' is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Define entity form routes through the _entity_form instead through the _controller directive. See https://www.drupal.org/node/3084856', E_USER_DEPRECATED);
$node = $this->entityTypeManager()->getStorage('node')->create([
'type' => $node_type->id(),
]);
$form = $this->entityFormBuilder()->getForm($node); 07.11.2019
search_api 8.x-1.15 ::
src/Datasource/DatasourcePluginBase.php
*/
public function checkItemAccess(ComplexDataInterface $item, AccountInterface $account = NULL) {
@trigger_error('\Drupal\search_api\Datasource\DatasourceInterface::checkItemAccess() is deprecated in search_api:8.x-1.14 and is removed from search_api:9.x-1.0. Use getItemAccessResult() instead. See https://www.drupal.org/node/3051902', E_USER_DEPRECATED);
return $this->getItemAccessResult($item, $account)->isAllowed();
}
/**
* {@inheritdoc}
*/ 07.11.2019
search_api 8.x-1.15 ::
src/Display/DisplayPluginBase.php
*/
public function getUrl() {
@trigger_error('\Drupal\search_api\Display\DisplayInterface::getUrl() is deprecated in Search API 8.x-1.0 Beta 5. Use ::getPath() instead. See https://www.drupal.org/node/2856050', E_USER_DEPRECATED);
if ($path = $this->getPath()) {
return Url::fromUserInput($path);
}
return NULL;
} 07.11.2019
search_api 8.x-1.15 ::
src/Plugin/views/query/SearchApiQuery.php
*/
public function addRetrievedProperty($combined_property_path) {
@trigger_error('\Drupal\search_api\Plugin\views\query\SearchApiQuery::addRetrievedProperty() is deprecated in Search API 8.x-1.11. Use addRetrievedFieldValue() instead. See https://www.drupal.org/node/3009136', E_USER_DEPRECATED);
$this->addField(NULL, $combined_property_path);
return $this;
}
/**
* Adds a field value to be retrieved.
*/
public function getEntityTypes($return_bool = FALSE) {
@trigger_error('\Drupal\search_api\Plugin\views\query\SearchApiQuery::getEntityTypes() is deprecated in Search API 8.x-1.5. Use \Drupal\search_api\IndexInterface::getEntityTypes() instead. See https://www.drupal.org/node/2899678', E_USER_DEPRECATED);
$types = $this->index->getEntityTypes();
return $return_bool ? (bool) $types : $types;
}
/**
* {@inheritdoc} 07.11.2019
search_api 8.x-1.15 ::
src/Item/Item.php
*/
public function checkAccess(AccountInterface $account = NULL) {
@trigger_error('\Drupal\search_api\Item\ItemInterface::checkAccess() is deprecated in search_api:8.x-1.14 and is removed from search_api:9.x-1.0. Use getAccessResult() instead. See https://www.drupal.org/node/3051902', E_USER_DEPRECATED);
return $this->getAccessResult($account)->isAllowed();
}
/**
* {@inheritdoc}
*/ 05.02.2020
simpletest 8.x-3.x-dev ::
src/Exception/MissingGroupException.php
namespace Drupal\simpletest\Exception; @trigger_error(__NAMESPACE__ . '\\MissingGroupException is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\Exception\MissingGroupException instead. See https://www.drupal.org/node/2949692', E_USER_DEPRECATED); use Drupal\Core\Test\Exception\MissingGroupException as CoreMissingGroupException; /** * Exception thrown when a simpletest class is missing an @group annotation. *
05.02.2020
simpletest 8.x-3.x-dev ::
src/NodeCreationTrait.php
namespace Drupal\simpletest; @trigger_error(__NAMESPACE__ . '\NodeCreationTrait is deprecated in Drupal 8.4.x. Will be removed before Drupal 9.0.0. Use \Drupal\Tests\node\Traits\NodeCreationTrait instead. See https://www.drupal.org/node/2884454.', E_USER_DEPRECATED); use Drupal\Tests\node\Traits\NodeCreationTrait as BaseNodeCreationTrait; /** * Provides methods to create node based on default settings. *
05.02.2020
simpletest 8.x-3.x-dev ::
src/InstallerTestBase.php
namespace Drupal\simpletest; @trigger_error(__NAMESPACE__ . '\InstallerTestBase is deprecated in Drupal 8.6.0 and will be removed before Drupal 9.0.0. Instead, use \Drupal\FunctionalTests\Installer\InstallerTestBase, see https://www.drupal.org/node/2988752.', E_USER_DEPRECATED); use Drupal\Core\DrupalKernel; use Drupal\Core\Language\Language; use Drupal\Core\Session\UserSession; use Drupal\Core\Site\Settings; use Drupal\Tests\RequirementsPageTrait;
