You are here

public function RabbitHoleEntityPluginBase::getFormSubmitHandlerAttachLocations in Rabbit Hole 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/RabbitHoleEntityPluginBase.php \Drupal\rabbit_hole\Plugin\RabbitHoleEntityPluginBase::getFormSubmitHandlerAttachLocations()

Return locations to attach submit handlers to entities.

This should return an array of arrays, e.g.: [ ['actions', 'submit', '#publish'], ['actions', 'publish', '#submit'], ].

Overrides RabbitHoleEntityPluginInterface::getFormSubmitHandlerAttachLocations

File

src/Plugin/RabbitHoleEntityPluginBase.php, line 16

Class

RabbitHoleEntityPluginBase
Base class for Rabbit hole entity plugin plugins.

Namespace

Drupal\rabbit_hole\Plugin

Code

public function getFormSubmitHandlerAttachLocations(array $form, FormStateInterface $form_state) {
  return [
    [
      'actions',
      'submit',
      '#submit',
    ],
  ];
}