Closed (fixed)
Project:
Tour
Version:
2.0.x-dev
Component:
Code
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Feb 2017 at 14:34 UTC
Updated:
18 Jun 2025 at 02:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
goz commentedComment #3
gaurav.kapoor commentedconfiguration protected attribute in TipPluginBase is now available in tip plugin interface.
Comment #4
xjmI can see how having this method available would be better DX. However, shouldn't it instead extend ConfigurablePluginInterface?
Comment #5
xjmComment #6
gaurav.kapoor commentedChecked documentation for ConfigurablePluginInterface , other modules such as search are also using this method.Similar should be the case with Tour.
Comment #7
goz commentedI hesitated tout use this interface because that means we also have to implement setConfiguration() and defautConfiguration().
Comment #8
goz commentedComment #9
gaurav.kapoor commentedNow it looks better.
Comment #10
gaurav.kapoor commentedNow it looks better.
Comment #11
alexpottI think this should be:
It's just a bit more future proof. And would cope with merging the attributes array if the defaults contained values.
Also the issue summary needs an update since making TipPluginInterface implement \Drupal\Component\Plugin\ConfigurablePluginInterface is a big change - and one that probably needs a CR and some thought about BC layers extra. Maybe Tour UI should extend TipPluginBase and do this itself?
Comment #12
goz commentedOk with NestedArray::mergeDeep, i removed this and only use '+' to be make code simpler but it's ok for me to.
Unfortunately, Tour UI cannot do this itself. Right now, in case a custom tip does not provide getConfiguration(), we cannot save a tour.
Comment #13
goz commentedComment #14
alexpott@GoZ okay - we need to update the issue summary and create change record for this. And it probably will not make it into 8.3.x since it is an API change.
Comment #15
tim.plunkettThis should be called from the constructor instead of just doing
$this->configuration = $configuration;See https://www.drupal.org/node/2851635
This should be one line
This should be multiple lines :)
Comment #16
goz commentedComment #17
goz commentedChange record has been created https://www.drupal.org/node/2852401
Comment #19
goz commentedFix configuration set in constructor and add defaultConfiguration() in TipPluginText to add own default configuration attributes.
I see thanks to last failed test that tour still have simpletest tests.
Comment #20
gaurav.kapoor commentedComment #21
xjmWe can use the new trait in #2852463: Create a trait and base class to implement \Drupal\Component\Plugin\ConfigurableInterface for this actually! Postponing briefly on that.
Comment #34
quietone commentedThis extension is being deprecated, see #3336033: [Meta] Tasks to deprecate Tour module. It will be removed from core and moved to a contrib project, #3376099: [11.x] [Meta] Tasks to remove Tour.
This is now Postponed. The status is set according to two policies. The Remove a core extension and move it to a contributed project and the Extensions approved for removal policies.
Comment #35
smustgrave commentedMoving over but blocking ticket #21 is still not complete after 7 years wonder if we can do something else in contrib.
Comment #36
smustgrave commentedComment #37
smustgrave commentedSince we are moving Tour UI over in contrib version 2.0.x think it would be good to get something in for this. The trait ticket is all but stalled (happens). So think we can go forward with another.
Comment #38
smustgrave commentedGoing to include in #3458337: Integrate Tour UI into 2.0.x
Comment #40
xjmAmending attribution.