You are here

public function RabbitHoleEntityPluginBase::getFormSubmitHandlerAttachLocations in Rabbit Hole 8

Same name and namespace in other branches
  1. 2.x 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',
    ],
  ];
}