Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
menu system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Feb 2016 at 16:22 UTC
Updated:
12 Mar 2016 at 23:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
pwolanin commentedComment #3
wim leersComment #4
pwolanin commentedSmall fix to make sure the ID is consistent.
Comment #5
pwolanin commentedPlus some code comments
Comment #6
dawehnerI'm wondering whether we can have some form of test coverage to ensure this is actually working as expected?
Comment #7
dawehnerNote: We should also make it clear in the documentation that the method is supposed to return the plugin ID as well.
Comment #8
dawehnerLinked the related issue.
Comment #9
dawehnerComment #10
jibranWe also need tests.
Comment #11
rrrob commentedAdd
\Drupal\Core\Menu\Form\MenuLinkFormInterface::extractFormValuesdocumentation.Comment #12
dawehnerAdded a test as well
Comment #13
jibranThanks for the tests.
Comment #14
catchCommitted/pushed to 8.1.x and cherry-picked to 8.0.x. Thanks!
Comment #17
rrrob commented@pwolanin in my tests,
$form_state->getValue('id')is sometimesnull, overwriting$new_definition['id']which actually has a validid.In what cases were you seeing
$new_definition['id']not being present?