Here are all the instances I could find (a few false positives in there):

$ ag 'flag..id[^(]'
flag.module
421:      $flag_keys[] = $flag->id . '-' . $action;

src/FlagServiceProvider.php
22:    $container->setDefinition("flag.$id", $original_definition);
23:    $new_definition = new Definition('Drupal\flag\Access\CsrfAccessCheck', [new Reference("flag.$id"), new Reference('current_user')]);

src/Form/FlagFormBase.php
65:    $form['#flag_name'] = $flag->id;
80:      '#default_value' => $flag->id,
330:    if ($flag->id != $form['#flag_name']) {
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joachim created an issue. See original summary.

socketwench’s picture

Status: Needs review » Needs work

The last submitted patch, 2: 2821351.2.protectedFlagID.patch, failed testing.

The last submitted patch, 2: 2821351.2.protectedFlagID.patch, failed testing.

socketwench’s picture

Fix for FlagViewsReleationship.

  • joachim committed 6e93e43 on 8.x-4.x authored by socketwench
    Issue #2821351 by socketwench: Changed $flag::id to protected, in...
joachim’s picture

Status: Needs review » Fixed

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.