The documentation for the FormState::setRedirect()'s $options parameter says:
array $options: (optional) An associative array of additional options. See \Drupal\Core\Url for the available keys.
\Drupal\Core\Url is the documentation page that describes the \Drupal\Core\Url
class, but it doesn't say much about the options that can be used.
The description of $options
should be the following one.
array $options: (optional) An associative array of additional options. See
Url::fromUri()
for the available keys.
Comment | File | Size | Author |
---|---|---|---|
#17 | drupal-fix-link-in-documentation-3157963-16.patch | 961 bytes | davidhernandez |
#15 | drupal-fix-link-in-documentation-3157963-15.patch | 961 bytes | apaderno |
#14 | interdiff_12-14.txt | 882 bytes | ravi.shankar |
#14 | 3157963-14.patch | 871 bytes | ravi.shankar |
#12 | 3157963-12.patch | 721 bytes | shailja179 |
Comments
Comment #2
shailja179 CreditAttribution: shailja179 at Srijan | A Material+ Company for Drupal India Association commentedHi @joachim,
Which information do you need for url options? Please elaborate with steps.
Thanks
Comment #3
shailja179 CreditAttribution: shailja179 at Srijan | A Material+ Company for Drupal India Association commentedComment #4
joachim CreditAttribution: joachim commentedExpanded the IS.
Comment #5
shailja179 CreditAttribution: shailja179 at Srijan | A Material+ Company for Drupal India Association commented@joachim, You can use below things in options parameter.
Let me know if this helps.
Comment #6
apaderno@shailja179 joachim is pointing out that the link given in An associative array of additional options. See \Drupal\Core\Url for the available keys. doesn't take to a page explaining what options can be used. It points to a class documentation page, where nothing is said about those options.
Comment #7
apadernoI made more explicit what the suggested change is.
Comment #8
shailja179 CreditAttribution: shailja179 at Srijan | A Material+ Company for Drupal India Association commentedI have uploaded the patch to fix this incorrect information.
Please check this patch.
Comment #9
shailja179 CreditAttribution: shailja179 at Srijan | A Material+ Company for Drupal India Association commentedComment #10
joachim CreditAttribution: joachim as a volunteer commentedLooks good.
Thanks for the patch!
Comment #11
apadernoNitpicking: See can stay on the previous line, where it originally was.
Comment #12
shailja179 CreditAttribution: shailja179 at Srijan | A Material+ Company for Drupal India Association commentedAdded fixed patch.Please check.
Comment #13
alexpottLet's improve this one step further and add an
@see \Drupal\Core\Url::fromUri()
to the @see section - that way someone can click on that in their IDE of choice and be taken there.Comment #14
ravi.shankar CreditAttribution: ravi.shankar at OpenSense Labs commentedComment #15
apadernoI would use the following patch, which makes more explicit what the users need to look for in the linked page (and it adds the
@see
tag as requested).Comment #16
ravi.shankar CreditAttribution: ravi.shankar at OpenSense Labs commentedChanged status to needs work as patch #15 didn't apply.
Comment #17
davidhernandezNot sure what changed (chunk size changed) from then to now but I just pulled updates so I would assume applies ok.
Comment #19
tanubansal CreditAttribution: tanubansal at Salsa Digital commentedTested #17 on 9.1, its working fine
This can be moved to RTBC
Comment #20
joachim CreditAttribution: joachim commentedLGTM.
Thanks everyone!
Comment #21
alexpottCommitted and pushed d6b4ca71b6 to 9.2.x and ecb9c5029f to 9.1.x and caa0f61ada to 9.0.x and 2c50387f33 to 8.9.x. Thanks!
Backported to 8.9.x as this docs fix is helpful there too.