Skip to content
Snippets Groups Projects

Add skip option to modules

Open nicxvan requested to merge issue/drupal-3490355:3490355-explore-ways-to into 11.x
4 unresolved threads
Files
24
@@ -225,4 +225,24 @@ public function isObsolete(): bool {
&& $this->info[ExtensionLifecycle::LIFECYCLE_IDENTIFIER] === ExtensionLifecycle::OBSOLETE);
}
/**
* Sets procedural value.
*
* @param string $scan
* Should the module be scanned for procedural hooks.
*/
public function setProceduralScan(string $scan): void {
$this->info[ExtensionHookStatus::PROCEDURAL_HOOKS] = $scan;
}
/**
* Checks if an extension should skip procedural hooks.
*
* @return string
* FALSE if an extension has procedural hooks, TRUE otherwise.
Please register or sign in to reply
*/
public function scanProceduralHooks(): string {
return $this->info[ExtensionHookStatus::PROCEDURAL_HOOKS] ?? 'scan';
}
}
Loading