public function RabbitHoleEntityPluginBase::getBundleFormSubmitHandlerAttachLocations in Rabbit Hole 2.x
Same name and namespace in other branches
- 8 src/Plugin/RabbitHoleEntityPluginBase.php \Drupal\rabbit_hole\Plugin\RabbitHoleEntityPluginBase::getBundleFormSubmitHandlerAttachLocations()
Return locations to attach submit handlers to entity bundle form.
This should return an array of arrays, e.g.: [ ['actions', 'submit', '#publish'], ['actions', 'publish', '#submit'], ].
Return value
array A multidimensional array.
Overrides RabbitHoleEntityPluginInterface::getBundleFormSubmitHandlerAttachLocations
1 call to RabbitHoleEntityPluginBase::getBundleFormSubmitHandlerAttachLocations()
- Node::getBundleFormSubmitHandlerAttachLocations in modules/
rh_node/ src/ Plugin/ RabbitHoleEntityPlugin/ Node.php - Return locations to attach submit handlers to entity bundle form.
1 method overrides RabbitHoleEntityPluginBase::getBundleFormSubmitHandlerAttachLocations()
- Node::getBundleFormSubmitHandlerAttachLocations in modules/
rh_node/ src/ Plugin/ RabbitHoleEntityPlugin/ Node.php - Return locations to attach submit handlers to entity bundle form.
File
- src/
Plugin/ RabbitHoleEntityPluginBase.php, line 23
Class
- RabbitHoleEntityPluginBase
- Base class for Rabbit hole entity plugin plugins.
Namespace
Drupal\rabbit_hole\PluginCode
public function getBundleFormSubmitHandlerAttachLocations(array $form, FormStateInterface $form_state) {
return [
[
'actions',
'submit',
'#submit',
],
];
}