You are here

public function RabbitHoleEntityPluginBase::getGlobalFormSubmitHandlerAttachLocations in Rabbit Hole 8

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

Return locations to attach submit handlers to the global config form.

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

Overrides RabbitHoleEntityPluginInterface::getGlobalFormSubmitHandlerAttachLocations

1 method overrides RabbitHoleEntityPluginBase::getGlobalFormSubmitHandlerAttachLocations()
User::getGlobalFormSubmitHandlerAttachLocations in modules/rh_user/src/Plugin/RabbitHoleEntityPlugin/User.php
Return locations to attach submit handlers to the global config form.

File

src/Plugin/RabbitHoleEntityPluginBase.php, line 37

Class

RabbitHoleEntityPluginBase
Base class for Rabbit hole entity plugin plugins.

Namespace

Drupal\rabbit_hole\Plugin

Code

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