Commit 3e9402dd authored by Luhur Abdi Rizal's avatar Luhur Abdi Rizal
Browse files

Issue #3308063 by el7cosmos: Deprecate support for eck module

parent ffaad163
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -13,8 +13,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",
        "mglaman/phpstan-drupal": "^1.1",
+1 −1
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ class FileDownloadEvent extends Event implements EventInterface, HookReturnInter
   *
   * @var array
   */
  protected array $headers;
  protected array $headers = [];

  /**
   * FileDownloadEvent constructor.
+6 −2
Original line number Diff line number Diff line
@@ -30,6 +30,8 @@ class FormBaseAlterEvent extends AbstractFormEvent {
   * @param string $formId
   *   String representing the name of the form itself. Typically this is the
   *   name of the function that generated the form.
   *
   * @SuppressWarnings(PHPMD.ElseExpression)
   */
  public function __construct(
    array &$form,
@@ -38,11 +40,13 @@ class FormBaseAlterEvent extends AbstractFormEvent {
  ) {
    parent::__construct($form, $formState, $formId);
    $buildInfo = $formState->getBuildInfo();
    $this->baseFormId = $buildInfo['base_form_id'] ?? NULL;

    if (!$this->baseFormId) {
    if (empty($buildInfo['base_form_id'])) {
      $this->stopPropagation();
    }
    else {
      $this->baseFormId = $buildInfo['base_form_id'];
    }
  }

  /**
+0 −5
Original line number Diff line number Diff line
@@ -16,11 +16,6 @@ services:
    tags:
      - { name: preprocess_event_default_factory }

  preprocess_event.factory.eck_entity:
    class: Drupal\preprocess_event_dispatcher\Factory\EckEntityPreprocessEventFactory
    tags:
      - { name: preprocess_event_default_factory }

  preprocess_event.factory.field:
    class: Drupal\preprocess_event_dispatcher\Factory\FieldPreprocessEventFactory
    tags:
+0 −17
Original line number Diff line number Diff line
<?php

namespace Drupal\preprocess_event_dispatcher\Event;

/**
 * Class EckEntityPreprocessEvent.
 */
final class EckEntityPreprocessEvent extends AbstractPreprocessEntityEvent {

  /**
   * {@inheritdoc}
   */
  public static function getHook(): string {
    return 'eck_entity';
  }

}
Loading