- Issue created by @charginghawk
- Merge request !73Add source_type annotation to extend another source plugin. β (Open) created by charginghawk
- Status changed to Needs review
7 months ago 4:58am 9 September 2024 - πΊπΈUnited States charginghawk
- Status changed to Postponed: needs info
7 months ago 6:15am 9 September 2024 - π¨πSwitzerland berdir Switzerland
If you want to customize a plugin, don't define your own, alter the class instead.
I don't see how this makes sense, after this, your plugin wont' be involved anymore.
- Status changed to Closed: works as designed
7 months ago 8:31pm 19 September 2024 - πΊπΈUnited States charginghawk
Without getting into whether the approach makes sense (in our case we wanted a separate UI from the original), we found an easier way to accomplish this without the patch:
public function overviewFormSubmit(array $form, FormStateInterface $form_state, $type) { $current_plugin_id = $this->pluginId; $this->pluginId = 'content'; parent::overviewFormSubmit($form, $form_state, $type); $this->pluginId = $current_plugin_id; }