Results

13.10.2020
build_hooks 8.x-2.4 :: src/BuildHookDetails.php
83
84
85
86
87
88
89
90
91
*/
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.
 *
109
110
111
112
113
114
115
116
117
*/
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
34
35
36
37
38
39
40
41
42
*/
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.
 */
42
43
44
45
46
47
48
49
50
*/
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
51
52
53
54
55
56
57
58
59
*/
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;
80
81
82
83
84
85
86
87
88
*/
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
73
74
75
76
77
78
79
80
81
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
94
95
96
97
98
99
100
101
102
  $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
19
20
21
22
23
24
25
26
27
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.
79
80
81
82
83
84
85
        $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
10
11
12
13
14
15
16
17
18
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.
17.10.2020
coder 8.x-3.x-dev :: coder_sniffer/Drupal/Sniffs/Semantics/UnsilencedDeprecationSniff.php
65
66
67
68
69
70
71
72
// 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
64
65
66
67
68
69
70
// 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);
10.09.2018
commerce_amws 8.x-1.x-dev :: src/Entity/ConfigEntityPublishedTrait.php
25
26
27
28
29
30
31
32
33
  @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
71
72
73
74
75
76
77
78
79
*/
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
27
28
29
30
31
32
33
34
35
      return $previous_error_handler($severity, $message, $file, $line);
    }
  }, E_USER_DEPRECATED);
}
 
/**
 * Restores the original error handler.
 */
protected function restoreErrorHandler() {
13.09.2020
commerce_product_reservation 8.x-1.x-dev :: tests/src/FunctionalJavascript/CheckoutFlowTest.php
72
73
74
75
76
77
78
79
80
      return $previous_error_handler($severity, $message, $file, $line, $context);
    }
  }, E_USER_DEPRECATED);
}
 
/**
 * Test the fact that we have a checkout flow for reservations.
 */
public function testCheckoutFlowExists() {
16.08.2020
commerce_trustedshops 8.x-2.x-dev :: tests/src/Traits/DeprecationSuppressionTrait.php
30
31
32
33
34
35
36
37
38
      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
164
165
166
167
168
169
170
171
172
*/
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}
 */
21.10.2020
config_enforce 1.0.0-beta13 :: src/Form/AbstractEnforceForm.php
34
35
36
37
38
39
40
41
42
@trigger_error(
  'Using this method is deprecated in 1.0.0 and will be removed before 2.0.0.',
  E_USER_DEPRECATED
);
 
$this->form()['#prefix'] = "<div class='config-enforce-form'>";
$this->form()['#suffix'] = "</div>";
$this->form()['#attached']['library'][] = 'config_enforce/config-enforce';
return $this;
23.06.2020
config_provider 8.x-2.0-rc4 :: src/Plugin/ConfigProviderBase.php
301
302
303
304
305
306
307
308
309
*/
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.
 *
318
319
320
321
322
323
324
325
326
*/
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
78
79
80
81
82
83
84
85
86
  $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;
 
}
113
114
115
116
117
118
119
120
121
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
108
109
110
111
112
113
114
115
116
// 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']])) {
117
118
119
120
121
122
123
124
125
  $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
45
46
47
48
49
50
51
52
    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
68
69
70
71
72
73
74
75
76
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());

Pages

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc