Results
26.02.2020
api 8.x-1.x-dev ::
tests/files/plugin/Component/PluginBase.php
*/
public function isConfigurable() {
@trigger_error(__CLASS__ . "::" . __FUNCTION__ . " is deprecated in drupal:11.1.0 and is removed from drupal:12.0.0. Use instanceof to check if the plugin implements \Drupal\Component\Plugin\ConfigurableInterface instead. See https://www.drupal.org/node/3198285", E_USER_DEPRECATED);
return $this instanceof ConfigurableInterface;
}
} 02.10.2020
apigee_edge 8.x-1.17 ::
modules/apigee_edge_teams/src/Entity/Storage/TeamAppStorage.php
$this->orgController = $org_controller;
if ($config === NULL) {
@trigger_error('Calling ' . __METHOD__ . ' without the $config is deprecated in apigee_edge:4.0.3 and it will be required in apigee_edge:5.0.0. See https://github.com/apigee/apigee-edge-drupal/pull/1155.', E_USER_DEPRECATED);
$config = \Drupal::configFactory();
}
$config = $config->get('apigee_edge_teams.team_app_settings');
$this->cacheExpiration = $config->get('cache_expiration');
$this->cacheInsertChunkSize = $config->get('cache_insert_chunk_size') ?? static::DEFAULT_PERSISTENT_CACHE_INSERT_CHUNK_SIZE; 02.10.2020
apigee_edge 8.x-1.17 ::
modules/apigee_edge_teams/src/Controller/TeamMembersList.php
public function __construct(TeamMembershipManagerInterface $team_membership_manager, EntityTypeManagerInterface $entity_type_manager, ModuleHandlerInterface $module_handler, CompanyMembershipObjectCacheInterface $company_membership_object_cache, AppGroupMembershipObjectCacheInterface $appgroup_membership_object_cache, OrganizationControllerInterface $org_controller) {
if (!$module_handler) {
@trigger_error('Calling ' . __METHOD__ . ' without the $module_handler is deprecated in apigee_edge:8-x-1.19 and is required before apigee_edge:8.x-2.0. See https://github.com/apigee/apigee-edge-drupal/pull/518.', E_USER_DEPRECATED);
$module_handler = \Drupal::moduleHandler();
}
$this->teamMembershipManager = $team_membership_manager;
$this->entityTypeManager = $entity_type_manager; 25.08.2020
arch 8.x-1.x-dev ::
modules/order/includes/deprecated.inc
*/
function order_access_grants($op, AccountInterface $account) {
@trigger_error(__FUNCTION__ . ' is deprecated in 1.0.0-alpha20 and is removed from 1.0.0. Use arch_order_access_grants', E_USER_DEPRECATED);
return arch_order_access_grants($op, $account);
}
/**
* Checks if the current page is the full page view of the passed-in order.
*
*/
function order_is_page(OrderInterface $order) {
@trigger_error(__FUNCTION__ . ' is deprecated in 1.0.0-alpha20 and is removed from 1.0.0. Use arch_order_is_page', E_USER_DEPRECATED);
return arch_order_is_page($order);
} 25.08.2020
arch 8.x-1.x-dev ::
modules/product/inc/deprecated.inc
*/
function product_type_get_names() {
@trigger_error(__FUNCTION__ . ' is deprecated in 1.0.0-alpha20 and is removed from 1.0.0. Use arch_product_type_get_names', E_USER_DEPRECATED);
return arch_product_type_get_names();
}
/**
* Returns the product type label for the passed product.
*
*/
function product_get_type_label(ProductInterface $product) {
@trigger_error(__FUNCTION__ . ' is deprecated in 1.0.0-alpha20 and is removed from 1.0.0. Use arch_product_get_type_label', E_USER_DEPRECATED);
return arch_product_get_type_label($product);
}
/**
* Updates all products of one type to be of another type.
*
*/
function product_type_update_products($old_id, $new_id) {
@trigger_error(__FUNCTION__ . ' is deprecated in 1.0.0-alpha20 and is removed from 1.0.0. Use arch_product_type_update_products', E_USER_DEPRECATED);
return arch_product_type_update_products($old_id, $new_id);
}
/**
* Checks if the current page is the full page view of the passed-in product.
*
*/
function product_is_page(ProductInterface $product) {
@trigger_error(__FUNCTION__ . ' is deprecated in 1.0.0-alpha20 and is removed from 1.0.0. Use arch_product_is_page', E_USER_DEPRECATED);
return arch_product_is_page($product);
}
/**
* Finds the most recently changed products that are available to the user.
*
*/
function product_get_recent($number = 10) {
@trigger_error(__FUNCTION__ . ' is deprecated in 1.0.0-alpha20 and is removed from 1.0.0. Use arch_product_get_recent', E_USER_DEPRECATED);
return arch_product_get_recent($number);
}
/**
* Fetches an array of permission IDs granted to the given user ID.
*
*/
function product_access_grants($op, AccountInterface $account) {
@trigger_error(__FUNCTION__ . ' is deprecated in 1.0.0-alpha20 and is removed from 1.0.0. Use arch_product_access_grants', E_USER_DEPRECATED);
return arch_product_access_grants($op, $account);
}
/**
* Determines whether the user has a global viewing grant for all products.
*
*/
function product_access_view_all_products($account = NULL) {
@trigger_error(__FUNCTION__ . ' is deprecated in 1.0.0-alpha20 and is removed from 1.0.0. Use product_access_view_all_products', E_USER_DEPRECATED);
return arch_product__product_access_view_all_products($account);
}
/**
* Toggles or reads values of a flag for rebuilding the product access grants.
*
*/
function product_access_needs_rebuild($rebuild = NULL) {
@trigger_error(__FUNCTION__ . ' is deprecated in 1.0.0-alpha20 and is removed from 1.0.0. Use arch_product__product_access_needs_rebuild', E_USER_DEPRECATED);
return arch_product__product_access_needs_rebuild($rebuild);
}
/**
* Rebuilds the product access database.
*
*/
function product_access_rebuild($batch_mode = FALSE) {
@trigger_error(__FUNCTION__ . ' is deprecated in 1.0.0-alpha20 and is removed from 1.0.0. Use arch_product_access_rebuild', E_USER_DEPRECATED);
arch_product_access_rebuild($batch_mode);
}
/**
* Implements callback_batch_operation().
*
*/
function _product_access_rebuild_batch_operation(array &$context) {
@trigger_error(__FUNCTION__ . ' is deprecated in 1.0.0-alpha20 and is removed from 1.0.0. Use arch_product__product_access_rebuild_batch_operation', E_USER_DEPRECATED);
arch_product__product_access_rebuild_batch_operation($context);
}
/**
* Implements callback_batch_finished().
*
*/
function _product_access_rebuild_batch_finished($success, array $results, array $operations) {
@trigger_error(__FUNCTION__ . ' is deprecated in 1.0.0-alpha20 and is removed from 1.0.0. Use arch_product__product_access_rebuild_batch_finished', E_USER_DEPRECATED);
arch_product__product_access_rebuild_batch_finished($success, $results, $operations);
}
/**
* Marks a product to be re-indexed by the product_search plugin.
*
*/
function product_reindex_product_search($pid) {
@trigger_error(__FUNCTION__ . ' is deprecated in 1.0.0-alpha20 and is removed from 1.0.0. Use product_reindex_product_search', E_USER_DEPRECATED);
arch_product_reindex_product_search($pid);
} 25.08.2020
arch 8.x-1.x-dev ::
modules/checkout/modules/onepage/includes/deprecated.inc
*/
function arch_checkout_preprocess_arch_checkout_op_summary(array &$variables) {
@trigger_error(__FUNCTION__ . ' is deprecated in 1.0.0-alpha20 and is removed from 1.0.0. Use arch_onepage_preprocess_arch_checkout_op_summary', E_USER_DEPRECATED);
arch_onepage_preprocess_arch_checkout_op_summary($variables);
} 28.08.2020
attachinline 8.x-1.2 ::
src/EventSubscriber/CspSubscriber.php
*/
public function getNonce() {
@trigger_error('CspSubscriber::getNonce() is deprecated in attachinline:8.x-1.5 and is removed from attachinline:2.0.0. Use \Drupal\csp\Nonce::getValue() instead. See https://www.drupal.org/project/attachinline/issues/3389256', E_USER_DEPRECATED);
return $this->nonce->getValue();
}
/**
* Enable nonce for a directive.
* 30.06.2020
blazy 8.x-2.x-dev ::
src/Plugin/Filter/Shortcode.php
*/
public static function unwrap($string, $container = 'blazy', $item = 'item'): string {
// @todo @trigger_error('unwrap is deprecated in blazy:8.x-2.17 and is removed from blazy:3.0.0. Use self::parse() instead. See https://www.drupal.org/node/3367291', E_USER_DEPRECATED);
return self::parse($string, $container, $item);
}
} 14.06.2020
bootstrap 8.x-3.23 ::
src/Utility/Unicode.php
*/
public static function strpos($haystack, $needle, $offset = 0) {
@trigger_error('\Drupal\bootstrap\Utility\Unicode::strpos() is deprecated in bootstrap:8.x-3.22 and will be removed before bootstrap:5.0.0. Use mb_strpos() instead. See https://www.drupal.org/project/bootstrap/issues/3096963.', E_USER_DEPRECATED);
if (static::getStatus() == static::STATUS_MULTIBYTE) {
return mb_strpos($haystack, $needle, $offset);
}
else {
// Remove Unicode continuation characters, to be compatible with
// Unicode::strlen() and Unicode::substr().
*/
public static function strtolower($text) {
@trigger_error('\Drupal\bootstrap\Utility\Unicode::strtolower() is deprecated in bootstrap:8.x-3.22 and will be removed before bootstrap:5.0.0. Use mb_strtolower() instead. See https://www.drupal.org/project/bootstrap/issues/3096963.', E_USER_DEPRECATED);
if (static::getStatus() == static::STATUS_MULTIBYTE) {
return mb_strtolower($text);
}
else {
// Use C-locale for ASCII-only lowercase.
$text = strtolower($text);
*/
public static function substr($text, $start, $length = NULL) {
@trigger_error('\Drupal\bootstrap\Utility\Unicode::substr() is deprecated in bootstrap:8.x-3.22 and will be removed before bootstrap:5.0.0. Use mb_substr() instead. See https://www.drupal.org/project/bootstrap/issues/3096963.', E_USER_DEPRECATED);
if (static::getStatus() == static::STATUS_MULTIBYTE) {
return $length === NULL ? mb_substr($text, $start) : mb_substr($text, $start, $length);
}
else {
$strlen = strlen($text);
// Find the starting byte offset. 03.10.2024
bootstrap3 1.0.1 ::
src/Utility/Unicode.php
*/
public static function strpos($haystack, $needle, $offset = 0) {
@trigger_error('\Drupal\bootstrap3\Utility\Unicode::strpos() is deprecated in bootstrap:8.x-3.22 and will be removed before bootstrap:5.0.0. Use mb_strpos() instead. See https://www.drupal.org/project/bootstrap/issues/3096963.', E_USER_DEPRECATED);
if (static::getStatus() == static::STATUS_MULTIBYTE) {
return mb_strpos($haystack, $needle, $offset);
}
else {
// Remove Unicode continuation characters, to be compatible with
// Unicode::strlen() and Unicode::substr().
*/
public static function strtolower($text) {
@trigger_error('\Drupal\bootstrap3\Utility\Unicode::strtolower() is deprecated in bootstrap:8.x-3.22 and will be removed before bootstrap:5.0.0. Use mb_strtolower() instead. See https://www.drupal.org/project/bootstrap/issues/3096963.', E_USER_DEPRECATED);
if (static::getStatus() == static::STATUS_MULTIBYTE) {
return mb_strtolower($text);
}
else {
// Use C-locale for ASCII-only lowercase.
$text = strtolower($text);
*/
public static function substr($text, $start, $length = NULL) {
@trigger_error('\Drupal\bootstrap3\Utility\Unicode::substr() is deprecated in bootstrap:8.x-3.22 and will be removed before bootstrap:5.0.0. Use mb_substr() instead. See https://www.drupal.org/project/bootstrap/issues/3096963.', E_USER_DEPRECATED);
if (static::getStatus() == static::STATUS_MULTIBYTE) {
return $length === NULL ? mb_substr($text, $start) : mb_substr($text, $start, $length);
}
else {
$strlen = strlen($text);
// Find the starting byte offset. 20.10.2020
brandfolder 8.x-1.x-dev ::
src/Element/BrandfolderFileFormElement.php
if (isset($element['#upload_validators']['file_validate_extensions'][0]) || isset($element['#upload_validators']['FileExtension']['extensions'])) {
if (isset($element['#upload_validators']['file_validate_extensions'][0])) {
@trigger_error('\'file_validate_extensions\' is deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use the \'FileExtension\' constraint instead. See https://www.drupal.org/node/3363700', E_USER_DEPRECATED);
$allowed_extensions = $element['#upload_validators']['file_validate_extensions'][0];
}
else {
$allowed_extensions = $element['#upload_validators']['FileExtension']['extensions'];
}
$allowed_extensions_array = array_filter(explode(' ', $allowed_extensions)); 30.04.2024
breezy_utility 1.0.x-dev ::
src/BreezyUtilityClassesManager.php
$this->themeHandler = $theme_handler;
if ($module_extension_list === NULL) {
@trigger_error('Calling ' . __METHOD__ . '() without the $module_extension_list argument is deprecated in drupal:10.3.0 and will be required in drupal:12.0.0. See https://www.drupal.org/node/3310017', E_USER_DEPRECATED);
// @phpstan-ignore-next-line
$module_extension_list = \Drupal::service('extension.list.module');
}
$this->moduleExtensionList = $module_extension_list;
$this->setStringTranslation($string_translation);
$this->alterInfo('breezy_utility_classes'); 13.10.2020
build_hooks 8.x-2.4 ::
src/DeployLogger.php
*/
public function getLogItemsSinceTimestamp($timestamp) {
@trigger_error(__METHOD__ . ' is deprecated in build_hooks:8.x-2.4 and is removed from build_hooks:8.x-3.0. There is no replacement, instead work with the deployment content entity. See https://www.drupal.org/node/3172327', E_USER_DEPRECATED);
return [];
}
/**
* Gets how many changes have happened since the last deployment for an env.
* 13.10.2020
build_hooks 8.x-2.4 ::
src/BuildHookDetails.php
*/
public function getBody(): array {
@trigger_error(__METHOD__ . ' is deprecated in build_hooks:8.x-2.4 and is removed from build_hooks:8.x-3.0. Instead, you should use Drupal\build_hooks\BuildHookDetails::getOptions. See https://www.drupal.org/node/3173753', E_USER_DEPRECATED);
return $this->options;
}
/**
* Get the options.
*
*/
public function setBody(array $body) {
@trigger_error(__METHOD__ . ' is deprecated in build_hooks:8.x-2.4 and is removed from build_hooks:8.x-3.0. Instead, you should use Drupal\build_hooks\BuildHookDetails::setOptions. See https://www.drupal.org/node/3173753', E_USER_DEPRECATED);
$this->options = $body;
}
/**
* Set the options.
* 24.03.2022
cacheable_types 1.x-dev ::
src/CacheableBool.php
*/
public static function createTrue(): CacheableBool {
@trigger_error('CacheableBool::createTrue is deprecated in cacheable_types 1.0.4, will be removed before 2.0.0.', E_USER_DEPRECATED);
return new static(TRUE, new CacheableMetadata());
}
/**
* @deprecated in cacheable_types 1.0.4, will be removed before 2.0.0.
*/
*/
public static function createFalse(): CacheableBool {
@trigger_error('CacheableBool::createFalse is deprecated in cacheable_types 1.0.4, will be removed before 2.0.0.', E_USER_DEPRECATED);
return new static(FALSE, new CacheableMetadata());
}
/**
* @deprecated in cacheable_types 1.0.4, will be removed before 2.0.0.
* Use ::ifAccessResultAllowed, ::ifAccessResultNotForbidden
*/
public static function fromAccessResult(AccessResultInterface $accessResult, bool $useNotForbidden = FALSE): CacheableBool {
@trigger_error('CacheableBool::fromAccessResult is deprecated in cacheable_types 1.0.4, will be removed before 2.0.0. Use ::ifAccessResultAllowed, ::ifAccessResultNotForbidden', E_USER_DEPRECATED);
$bool = $useNotForbidden ?
!$accessResult->isForbidden() :
$accessResult->isAllowed();
$cacheability = $accessResult instanceof CacheableDependencyInterface
? $accessResult : NULL;
*/
public function toAccessResult(bool $useNotForbidden = FALSE): AccessResult {
@trigger_error('CacheableBool::toAccessResult is deprecated in cacheable_types 1.0.4, will be removed before 2.0.0. Use ::toAllowedOrNeutral, ::toNeutralOrForbidden, ::toAllowedOrForbidden', E_USER_DEPRECATED);
$accessResult = $useNotForbidden ?
AccessResult::forbiddenIf(!$this->value) :
AccessResult::allowedIf($this->value);
$accessResult->addCacheableDependency($this);
return $accessResult;
} 08.09.2022
cached_moderation_state 1.0.0-alpha2 ::
src/BatchUpdateHandler.php
public function __construct(EntityTypeManagerInterface $entity_type_manager, ?LoggerChannelFactoryInterface $logger_factory = NULL) {
if (!isset($logger_factory)) {
@\trigger_error('Calling ' . __METHOD__ . '() without the $logger_factory argument is deprecated in cached_moderation_state:1.1.0 and will be required in cached_moderation_state:2.0.0. See https://www.drupal.org/node/3431365', \E_USER_DEPRECATED);
/**
* @var \Drupal\Core\Logger\LoggerChannelFactoryInterface
*/
// @phpcs:disable DrupalPractice.Objects.GlobalDrupal.GlobalDrupal
// @phpstan-ignore-next-line 10.10.2020
cas 8.x-1.x-dev ::
src/Exception/CasLoginException.php
$codeAsInt = $code;
$code = $cases[$code];
@trigger_error('Passing the exception code as integer is deprecated in cas:3.0.0 and removed from cas:3.1.0. use one of the \Drupal\cas\Model\ExceptionType enum cases instead. See https://www.drupal.org/node/3462792', E_USER_DEPRECATED);
}
else {
$codeAsInt = array_search($code, $cases, TRUE);
}
parent::__construct($message, $codeAsInt, $previous);
$this->code = $code; 10.10.2020
cas 8.x-1.x-dev ::
src/DependencyInjection/DeprecatedEventConstants.php
use Symfony\Component\DependencyInjection\ContainerBuilder;
@trigger_error('The ' . __NAMESPACE__ . '\DeprecatedEventConstants is deprecated in cas:3.0.0 and is removed from cas:3.1.0. No replacement is provided. See https://www.drupal.org/node/3462792', E_USER_DEPRECATED);
/**
* Compiler pass to detect deprecated event constants.
*
* @deprecated in cas:3.0.0 and is removed from cas:3.1.0. No replacement is
* provided.
$container->get('logger.factory')->get('cas')->warning($message);
}
@trigger_error($message, E_USER_DEPRECATED);
}
}
} 10.10.2020
cas 8.x-1.x-dev ::
src/CasServiceProvider.php
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
@trigger_error('The ' . __NAMESPACE__ . '\CasServiceProvider is deprecated in cas:3.0.0 and is removed from cas:3.1.0. No replacement is provided. See https://www.drupal.org/node/3462792', E_USER_DEPRECATED);
/**
* Adds a compiler pass to detect deprecated event constants.
*
* @deprecated in cas:3.0.0 and is removed from cas:3.1.0. No replacement is
* provided. 20.10.2020
charts 8.x-4.x-dev ::
src/Form/ChartsConfigForm.php
// @phpstan-ignore-next-line
$chart_plugin_manager = \Drupal::service('plugin.manager.charts');
@trigger_error('Calling ChartsConfigForm::__construct() without the $chart_plugin_manager as an instance of ChartManager 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);
}
if (empty($chart_type_plugin_manager)) {
// @phpstan-ignore-next-line
$chart_type_plugin_manager = \Drupal::service('plugin.manager.charts_type');
@trigger_error('Calling ChartsConfigForm::__construct() without the $chart_type_plugin_manager as an instance of TypeManager 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);
}
if (empty($module_extension_list)) {
// @phpstan-ignore-next-line
$module_extension_list = \Drupal::service('extension.list.module');
@trigger_error('Calling ChartsConfigForm::__construct() without the $module_extension_list as an instance of ModuleExtensionList 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);
}
if (empty($file_system)) {
// @phpstan-ignore-next-line
$file_system = \Drupal::service('file_system');
@trigger_error('Calling ChartsConfigForm::__construct() without the $file_system as an instance of FileSystemInterface 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->chartPluginManager = $chart_plugin_manager;
$this->chartTypePluginManager = $chart_type_plugin_manager;
$this->moduleExtensionList = $module_extension_list;
$this->fileSystem = $file_system; 