Hook order class method split
1 unresolved thread
1 unresolved thread
Closes #3484217
Merge request reports
Activity
105 111 * TRUE for before/first, FALSE for after/last. Larger priority listeners 106 112 * fire first. 107 113 * @param array|null $others 108 * Other hook implementations to compare to, if any. The array is keyed by 109 * string containing a class and method separated by ::, the value is not 110 * used. 114 * Other hook implementations to compare to, if any. The array is an 115 * alternating list of class and method names. 111 116 * 112 117 * @return void 113 118 */ 114 119 protected static function changePriority(ContainerBuilder $container, string $hook, string $class_and_method, bool $should_be_larger, ?array $others = NULL): void { 120 if (isset($others)) { 121 $mapped = []; 122 for ($i = 0; $i < count($others); $i += 2) { 123 $mapped[$others[$i] . '::' . $others[$i + 1]] = TRUE;
Please register or sign in to reply