Commit 59547241 authored by Luhur Abdi Rizal's avatar Luhur Abdi Rizal
Browse files

Issue #3308063 by el7cosmos: Deprecate support for eck module

parent 078a9aec
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -12,7 +12,6 @@
        "drupal/core": "^9.3"
    },
    "require-dev": {
        "drupal/coder": "<=8.3.13",
        "drupal/eck": "^1.0@alpha",
        "drupal/paragraphs": "^1.10",
        "drupal/webform": "^6.0",
+1 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ services:

  preprocess_event.factory.eck_entity:
    class: Drupal\preprocess_event_dispatcher\Factory\EckEntityPreprocessEventFactory
    deprecated: The "%service_id%" service is deprecated in hook_event_dispatcher:3.4.0 and is removed from hook_event_dispatcher:4.0.0. There is no replacement. See https://www.drupal.org/node/3308062
    tags:
      - { name: preprocess_event_default_factory }

+0 −2
Original line number Diff line number Diff line
@@ -7,8 +7,6 @@ use Drupal\Component\EventDispatcher\Event;

/**
 * Class AbstractPreprocessEvent.
 *
 * @SuppressWarnings(PHPMD.NumberOfChildren)
 */
abstract class AbstractPreprocessEvent extends Event implements PreprocessEventInterface {

+15 −0
Original line number Diff line number Diff line
@@ -2,11 +2,26 @@

namespace Drupal\preprocess_event_dispatcher\Event;

use Drupal\preprocess_event_dispatcher\Variables\AbstractEventVariables;

/**
 * Class EckEntityPreprocessEvent.
 *
 * @deprecated in hook_event_dispatcher:3.4.0 and is removed from
 *   hook_event_dispatcher:4.0.0. There is no replacement.
 *
 * @see https://www.drupal.org/node/3308062
 */
final class EckEntityPreprocessEvent extends AbstractPreprocessEntityEvent {

  /**
   * {@inheritdoc}
   */
  public function __construct(AbstractEventVariables $variables) {
    @trigger_error('Support for eck module is deprecated in hook_event_dispatcher:3.4.0 and is removed from hook_event_dispatcher:4.0.0. There is no replacement. See https://www.drupal.org/node/3308062', E_USER_DEPRECATED);
    parent::__construct($variables);
  }

  /**
   * {@inheritdoc}
   */
+6 −0
Original line number Diff line number Diff line
@@ -8,6 +8,11 @@ use Drupal\preprocess_event_dispatcher\Variables\EckEntityEventVariables;

/**
 * Class EckEntityPreprocessEventFactory.
 *
 * @deprecated in hook_event_dispatcher:3.4.0 and is removed from
 *   hook_event_dispatcher:4.0.0. There is no replacement.
 *
 * @see https://www.drupal.org/node/3308062
 */
final class EckEntityPreprocessEventFactory implements PreprocessEventFactoryInterface {

@@ -15,6 +20,7 @@ final class EckEntityPreprocessEventFactory implements PreprocessEventFactoryInt
   * {@inheritdoc}
   */
  public function createEvent(array &$variables): AbstractPreprocessEvent {
    @trigger_error('Support for eck module is deprecated in hook_event_dispatcher:3.4.0 and is removed from hook_event_dispatcher:4.0.0. There is no replacement. See https://www.drupal.org/node/3308062', E_USER_DEPRECATED);
    return new EckEntityPreprocessEvent(new EckEntityEventVariables($variables));
  }

Loading