Skip to content
Snippets Groups Projects
Verified Commit 9d285494 authored by Dave Long's avatar Dave Long
Browse files

Issue #3523159 by nicxvan, dww, donquixote: Add order parameter to FormAlter attribute

parent 49c6df3c
Branches
Tags
3 merge requests!5423Draft: Resolve #3329907 "Test2",!3478Issue #3337882: Deleted menus are not removed from content type config,!579Issue #2230909: Simple decimals fail to pass validation
Pipeline #491550 passed with warnings
Pipeline: drupal

#491555

    Pipeline: drupal

    #491553

      Pipeline: drupal

      #491551

        ......@@ -4,6 +4,8 @@
        namespace Drupal\Core\Hook\Attribute;
        use Drupal\Core\Hook\Order\OrderInterface;
        /**
        * Hook attribute for FormAlter.
        *
        ......@@ -37,13 +39,16 @@ class FormAlter extends Hook {
        * (optional) The module this implementation is for. This allows one module
        * to implement a hook on behalf of another module. Defaults to the module
        * the implementation is in.
        * @param \Drupal\Core\Hook\Order\OrderInterface|null $order
        * (optional) Set the order of the implementation.
        */
        public function __construct(
        string $form_id = '',
        public string $method = '',
        public ?string $module = NULL,
        public ?OrderInterface $order = NULL,
        ) {
        parent::__construct($form_id, $method, $module);
        parent::__construct($form_id, $method, $module, $order);
        }
        }
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Please register or to comment