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

Closes #3490355

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
225 225 && $this->info[ExtensionLifecycle::LIFECYCLE_IDENTIFIER] === ExtensionLifecycle::OBSOLETE);
226 226 }
227 227
228 /**
229 * Sets procedural value.
230 */
231 public function setProceduralScan(string $scan) {
232 $this->info[ExtensionHookStatus::PROCEDURAL_HOOKS] = $scan;
233 }
234
235 /**
236 * Checks if an extension should skip procedural hooks.
237 *
238 * @return string
239 * FALSE if an extension has procedural hooks, TRUE otherwise.
  • nicxvan
    nicxvan @nicxvan started a thread on the diff
  • 462 463 $file = $fileinfo->openFile('r');
    463 while (!$type && !$file->eof()) {
    464 preg_match('@^type:\s*(\'|")?(\w+)\1?\s*(?:\#.*)?$@', $file->fgets(), $matches);
    465 if (isset($matches[2])) {
    466 $type = $matches[2];
    464 while ((!$type || !$procedural_hooks) && !$file->eof()) {
    465 $line = $file->fgets();
    466
    467 if (!$type) {
    468 preg_match('@^type:\s*(\'|")?(\w+)\1?\s*(?:\#.*)?$@', $line, $matches);
    469 if (isset($matches[2])) {
    470 $type = $matches[2];
    471 }
    472 }
    473
    474 if (!$procedural_hooks) {
  • nicxvan
    nicxvan @nicxvan started a thread on the diff
  • 497 515 }
    498 516
    499 517 $extension = new Extension($this->root, $extension_arguments['type'], $extension_arguments['pathname'], $extension_arguments['filename']);
    518 $extension->setProceduralScan($extension_arguments['procedural_hooks']);
  • 153 155 * @param $module_preg
    154 156 * A regular expression matching every module, longer module names are
    155 157 * matched first.
    158 * @param $procedural_hook_status
  • nicxvan added 1 commit

    added 1 commit

    Compare with previous version

  • nicxvan added 1 commit

    added 1 commit

    Compare with previous version

  • nicxvan added 1 commit

    added 1 commit

    Compare with previous version

  • Please register or sign in to reply
    Loading