Results

16.08.2021
data_pipelines 1.x-dev :: src/Destination/DestinationRequest.php
    $this->machineName = $machine_name;
    $this->label = $label;
    @trigger_error(sprintf('%s is deprecated in data_pipelines:1.0.0-alpha19 and removed in data_pipelines:2.0.0. No replacement is provided. See https://www.drupal.org/project/data_pipelines/issues/3361740', static::class), E_USER_DEPRECATED);
  }

  /**
   * Gets value of machine name.
   *
   * @return string
08.09.2020
date_ap_style 8.x-1.x-dev :: src/Plugin/Field/FieldFormatter/ApStyleDateRangeFieldFormatter.php
   */
  protected static function dateTimeRangeDefaultSettings(): array {
    @trigger_error('Calling ' . __METHOD__ . '() is deprecated in date_ap_style:2.1.0 and is removed from date_ap_style:3.0.0. The formatter now handles date ranges internally without requiring the datetime_range module. See https://www.drupal.org/project/date_ap_style/issues/3543606', E_USER_DEPRECATED);
    return self::trait_dateTimeRangeDefaultSettings();
  }

  /**
   * Wrapper around DateTimeRangeTrait::dateTimeRangeSettingsForm().
   *
    // The trait was used in previous versions but is no longer needed as
    // date range formatting is now handled internally.
    @trigger_error('The DateTimeRangeTrait dependency in ' . __CLASS__ . ' is deprecated in date_ap_style:2.1.0 and is removed from date_ap_style:3.0.0. The formatter now handles date ranges internally without requiring the datetime_range module. See https://www.drupal.org/project/date_ap_style/issues/3543606', E_USER_DEPRECATED);
  }

}
21.08.2020
datetime_extras 8.x-1.x-dev :: src/Plugin/Field/FieldWidget/DateConfigurableListWidget.php
  public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, array $third_party_settings) {
    parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $third_party_settings);
    @trigger_error('The ' . __NAMESPACE__ . '\DateConfigurableListWidget is deprecated in datetime_extras:8.x-1.0 and is removed from datetime_extras:8.x-2.0. Use ' . __NAMESPACE__ . '\DateTimeDatelistNoTimeWidget instead. See https://www.drupal.org/node/2973035', E_USER_DEPRECATED);
  }

}
20.09.2020
decoupled_router 2.0.1 :: src/EventSubscriber/RouterPathTranslatorSubscriber.php
    else {
      @trigger_error('The $cacheable_metadata not being an instance of \Drupal\Core\Cache\CacheableMetadata is deprecated in decoupled_router:2.0.6 and is removed in decoupled_router:3.0.0. Pass in a \Drupal\Core\Cache\CacheableMetadata object instead. See https://www.drupal.org/node/3543536', E_USER_DEPRECATED);
    }
    $home_path = $this->configFactory->get('system.site')->get('page.front');
    if ($resolved_url instanceof Url) {
      $home_url = Url::fromUserInput($home_path)->setAbsolute((bool) $resolved_url->getOption('absolute'))->toString();
      $resolved_url = $resolved_url->toString();
    }
    else {
      @trigger_error('The $resolved_url not being an instance of \Drupal\Core\Url is deprecated in decoupled_router:2.0.6 and is removed in decoupled_router:3.0.0. Pass in a Url object instead. See https://www.drupal.org/node/3543536', E_USER_DEPRECATED);
      $home_url = Url::fromUserInput($home_path, ['absolute' => $this->decoupledRouterConfig->get('absolute_resolved_urls')])->toString(TRUE)->getGeneratedUrl();
    }

    return $resolved_url === $home_url;
  }
10.08.2020
default_content 2.0.x-dev :: src/Importer.php
    $this->contentEntityNormalizer = $content_entity_normalizer;
    if (!$extension_list instanceof ModuleExtensionList) {
      @trigger_error('Calling the ' . __METHOD__ . '() without $extension_list argument is deprecated in default_content:2.0.0-alpha3 and is removed from default_content:3.0.0 instead. See https://www.drupal.org/node/3250388', E_USER_DEPRECATED);
      $link_domain = $extension_list;
      $extension_list = \Drupal::service('extension.list.module');
    }
    $this->extensionList = $extension_list;
    if ($file_system === NULL) {
      @trigger_error('Calling the ' . __METHOD__ . '() without $extension_list argument is deprecated in default_content:2.0.0-alpha3 and is removed from default_content:3.0.0 instead. See https://www.drupal.org/node/3296226', E_USER_DEPRECATED);
      $file_system = \Drupal::service('file_system');
    }
    $this->fileSystem = $file_system;
    $this->linkDomain = $link_domain;
  }
12.10.2020
deprecation_status 8.x-3.x-dev :: src/Controller/ChartController.php
    // $ grep -r "@deprecated" core --exclude-dir=node_modules | grep -o "11.0.0" | wc -l

    // $ grep -ro "E_USER_DEPRECATED" core --exclude-dir=node_modules | wc -l
    // $ grep -r "E_USER_DEPRECATED" core --exclude-dir=node_modules | grep -o "11.0.0" | wc -l

    // Read historic core deprecation count data.
    $at_deprecated = '';
    $e_user_deprecated = '';
    $file = fopen(DataSource::getFullPath('core_deprecation_count.csv'), 'r');
    $i = 0;
    while ($line = fgetcsv($file, 0, ";")) {
      // Skip the header row.
      if ($i > 0) {
        $at_deprecated .= '{x: new Date("' . $line[0] . '"), y: ' . $line[1] . '},';
      if ($i > 0) {
        $at_deprecated .= '{x: new Date("' . $line[0] . '"), y: ' . $line[1] . '},';
        $e_user_deprecated .= '{x: new Date("' . $line[0] . '"), y: ' . $line[2] . '},';
      }
      $i++;
    }
    fclose($file);
    $at_deprecated = trim($at_deprecated, ',');
    $e_user_deprecated = trim($e_user_deprecated, ',');

    $build['core'] = [
      '#markup' => '<h2><a href="https://api.drupal.org/api/drupal/deprecated/9.4.x">Deprecated APIs</a> are removed from the Drupal 10 branch.</h2><p>Tracking based on @deprecated and E_USER_DEPRECATED mentions in Drupal 10 core for illustration, even though there are some other ways to deprecate things (libraries, extensions, etc).</p>',
      '#children' => <<<COREEND
  <canvas id="coreDeprecated"></canvas>
  <script type="text/javascript">
  var ctx = document.getElementById('coreDeprecated').getContext('2d');
  var chart = new Chart(ctx, {
    type: 'line',
      },
      {
        label: 'Drupal core E_USER_DEPRECATED mentions',
        borderColor: "#1F72B2",
        borderWidth: 4,
        data: [$e_user_deprecated],
        cubicInterpolationMode: 'monotone',
        fill: false,
        pointRadius: 4,
        pointHoverRadius: 10,
        pointBackgroundColor: "#1F72B2",
      }]
22.07.2024
devel_wizard 2.x-dev :: templates/project-drupal-drush/phpunit.xml.dist.twig
  <php>
    <!-- E_DEPRECATED = 8192 -->
    <!-- E_USER_DEPRECATED = 16384 -->
    <!-- E_ALL = 32767 -->
    <!-- E_ALL & ~E_DEPRECATED = 24575 -->
    <!-- E_ALL & ~E_USER_DEPRECATED = 16383 -->
    <ini name="error_reporting" value="32767" />

    <!-- Do not limit the amount of memory tests take to run. -->
    <ini name="memory_limit" value="-1" />

    <env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled" />
14.04.2020
dvf 2.x-dev :: src/Plugin/Visualisation/Source/VisualisationSourceBase.php
    if (!$file_url_generator) {
      @trigger_error('Calling VisualisationSourceBase::__construct() without the $file_url_generator argument is deprecated in drupal:9.5.0 and the $file_url_generator argument will be required in drupal:10.0.0. See https://www.drupal.org/node/2940031', E_USER_DEPRECATED);
      $file_url_generator = \Drupal::service('file_url_generator');
    }
    $this->fileUrlGenerator = $file_url_generator;
  }

  /**
12.08.2021
eca 1.0.x-dev :: src/ErrorHandlerTrait.php
    // Set the error handler.
    set_error_handler(function (int $level, string $message, string $file, int $line) use ($buildMessage): bool {
      if ($level === E_USER_DEPRECATED || $level === E_DEPRECATED) {
        return FALSE;
      }
      $this->logger->error($buildMessage($message, $file, $line));
      return FALSE;
    });
13.10.2020
eck 8.x-1.x-dev :: src/ArrayDeprecationWrapper.php
  #[\ReturnTypeWillChange]
  public function offsetExists($offset) {
    @trigger_error($this->deprecationWarning, E_USER_DEPRECATED);
    return isset($this->wrappedArray[$offset]);
  }

  /**
   * {@inheritdoc}
   */
  #[\ReturnTypeWillChange]
  public function offsetGet($offset) {
    @trigger_error($this->deprecationWarning, E_USER_DEPRECATED);
    return $this->wrappedArray[$offset];
  }

  /**
   * {@inheritdoc}
   */
  #[\ReturnTypeWillChange]
  public function offsetSet($offset, $value) {
    @trigger_error($this->deprecationWarning, E_USER_DEPRECATED);
    $this->wrappedArray[$offset] = $value;
  }

  /**
   * {@inheritdoc}
   */
  #[\ReturnTypeWillChange]
  public function offsetUnset($offset) {
    @trigger_error($this->deprecationWarning, E_USER_DEPRECATED);
    unset($this->wrappedArray[$offset]);
  }

  /**
   * Returns a render array representation of the object.
   *
   */
  public function toRenderable() {
    @trigger_error($this->deprecationWarning, E_USER_DEPRECATED);
    return $this->wrappedArray;
  }

}
16.06.2020
email_registration 8.x-1.1 :: email_registration.module
      $newAccountName = array_pop($names);
      $account->setUsername($newAccountName);
      @trigger_error('"hook_email_registration_name()" is deprecated in email_registration:2.0.0 and is removed from email_registration:3.0.0. Use hook_email_registration_name_alter instead. See https://www.drupal.org/project/email_registration/issues/3396028', E_USER_DEPRECATED);
    }
  }
  // @deprecated END.
}

/**
22.05.2020
embed 8.x-1.x-dev :: src/EmbedType/EmbedTypeBase.php
    parent::__construct($configuration, $plugin_id, $plugin_definition);
    if (!$this->moduleList) {
      @trigger_error('Calling ' . __METHOD__ . ' without the $moduleList argument is deprecated in embed:8.x-1.9 and it will be required in embed:2.0.0. See https://www.drupal.org/node/3467748', E_USER_DEPRECATED);
      // @phpstan-ignore-next-line
      $this->moduleList = \Drupal::service('extension.list.module');
    }
    $this->configuration = NestedArray::mergeDeep($this->defaultConfiguration(), $this->configuration);
  }
22.05.2020
embed 8.x-1.x-dev :: src/Entity/EmbedButton.php
   */
  public function getIconFile() {
    @trigger_error(__METHOD__ . ' is deprecated in embed:8.x-1.2 and will be removed in embed:2.0.0. Use \Drupal\embed\Entity\EmbedButton::getIconUrl instead. See https://www.drupal.org/node/3139211', E_USER_DEPRECATED);
    if (!empty($this->icon_uuid)) {
      $files = $this->entityTypeManager()->getStorage('file')->loadByProperties(['uuid' => $this->icon_uuid]);
      return reset($files);
    }
    return NULL;
  }
22.05.2020
embed 8.x-1.x-dev :: src/EmbedCKEditorPluginBase.php
use Symfony\Component\DependencyInjection\ContainerInterface;

@trigger_error('EmbedCKEditorPluginBase is deprecated in embed:8.x-1.9 and is removed from embed:2.0.0. Use \Drupal\entity_embed\Plugin\CKEditor5Plugin\EmbedCKEditor5PluginBase instead. See https://www.drupal.org/node/3467748', E_USER_DEPRECATED);

/**
 * Provides a base class for embed CKEditor plugins.
 *
 * @deprecated in embed:8.x-1.9 and is removed from embed:2.0.0. Use
 *   \Drupal\entity_embed\Plugin\CKEditor5Plugin\EmbedCKEditor5PluginBase
22.05.2020
embed 8.x-1.x-dev :: embed.module
// @phpcs:disable
function ckeditor_form_embed_button_add_form_alter(array &$form, FormStateInterface $form_state): void {
  @trigger_error(__FUNCTION__ . '() is deprecated in embed:8.x-1.9 and is removed from embed:2.0.0. There is no replacement. See https://www.drupal.org/node/3467748', E_USER_DEPRECATED);
  $form['#validate'][] = 'ckeditor_form_embed_button_add_form_validate';
}

/**
 * CKEditor-validation callback for new embed buttons.
 *
 */
function ckeditor_form_embed_button_add_form_validate(array &$form, FormStateInterface $form_state): void {
  @trigger_error(__FUNCTION__ . '() is deprecated in embed:8.x-1.9 and is removed from embed:2.0.0. There is no replacement. See https://www.drupal.org/node/3467748', E_USER_DEPRECATED);
  /** @var \Drupal\ckeditor\CKEditorPluginManager $ckeditor_plugin_manager */
  $ckeditor_plugin_manager = \Drupal::service('plugin.manager.ckeditor.plugin');

  // Get a list of all buttons that are provided by all plugins.
  $button_ids = array_reduce($ckeditor_plugin_manager->getButtons(), function ($result, $item) {
    return array_merge($result, array_keys($item));
18.10.2020
entity 8.x-1.x-dev :: src/QueryAccess/QueryAccessEvent.php
    $this->account = $account;
    if (!isset($entity_type_id)) {
      @trigger_error('The $entity_type_id argument must be passed to QueryAccessEvent::__construct(), it is required before entity:2.0.0. See https://www.drupal.org/node/3134363.', E_USER_DEPRECATED);
    }
    else {
      $this->entityTypeId = $entity_type_id;
    }
  }
20.11.2019
entity_activity 8.x-1.0-beta13 :: src/Plugin/LogGeneratorBase.php
    if (!($form_state instanceof SubformStateInterface)) {
      $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 2);
      trigger_error(sprintf('%s::%s() SHOULD receive %s on line %d, but %s was given. More information is available at https://www.drupal.org/node/2774077.', $trace[1]['class'], $trace[1]['function'], SubformStateInterface::class, $trace[1]['line'], get_class($form_state)), E_USER_DEPRECATED);
    }
    $this->setConfiguration($form_state->getValues());
  }

  /**
   * {@inheritdoc}
28.06.2020
entity_browser 8.x-2.x-dev :: src/SelectionDisplayBase.php
   */
  public function checkPreselectionSupport() {
    @trigger_error('checkPreselectionSupport method is deprecated. Use supportsPreselection instead.', E_USER_DEPRECATED);
    if (!$this->getPluginDefinition()['acceptPreselection']) {
      throw new ConfigException('Used entity browser selection display does not support preselection.');
    }
  }

  /**
22.07.2022
entity_bundle_permissions 1.0.0-alpha1 :: src/DynamicPermissions.php
  public function __construct(EntityTypeManagerInterface $entity_type_manager, LoggerChannelFactoryInterface $logger_factory, ?ConfigFactoryInterface $config_factory = NULL) {
    if ($config_factory === NULL) {
      @\trigger_error('Calling ' . __METHOD__ . '() without the $config_factory argument is deprecated in entity_bundle_permissions:1.1.0 and will be required in entity_bundle_permissions:2.0.0. See https://www.drupal.org/node/3409810', \E_USER_DEPRECATED);

      // @phpcs:disable DrupalPractice.Objects.GlobalDrupal.GlobalDrupal
      // @phpstan-ignore-next-line
      $config_factory = \Drupal::configFactory();
      // @phpcs:enable
    }
17.08.2020
entity_meta_relation 8.x-1.0-beta8 :: src/EntityMetaStorage.php
      if (!is_array($revision_ids)) {
        // phpcs:ignore
        @trigger_error('Passing a single revision ID to "\Drupal\Core\Entity\Sql\SqlContentEntityStorage::buildQuery()" is deprecated in drupal:8.5.x and will be removed before drupal:9.0.0. An array of revision IDs should be given instead. See https://www.drupal.org/node/2924915', E_USER_DEPRECATED);
      }

      $query->condition("revision.{$this->revisionKey}", $revision_ids, 'IN');
    }
    else {
      $query->join($this->revisionDataTable, 'revision_data', "revision.{$this->revisionKey} = revision_data.{$this->revisionKey}");

Pages

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

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