You are here

public function Product::getBundleFormSubmitHandlerAttachLocations in Token Content Access 8

Same name and namespace in other branches
  1. 2.0.x modules/tca_commerce_product/src/Plugin/TcaPlugin/Product.php \Drupal\tca_commerce_product\Plugin\TcaPlugin\Product::getBundleFormSubmitHandlerAttachLocations()

Return locations to attach submit handlers to entity bundles.

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

Return value

array A multidimensional array.

Overrides TcaPluginBase::getBundleFormSubmitHandlerAttachLocations

File

modules/tca_commerce_product/src/Plugin/TcaPlugin/Product.php, line 37

Class

Product
Implements TCA for commerce products.

Namespace

Drupal\tca_commerce_product\Plugin\TcaPlugin

Code

public function getBundleFormSubmitHandlerAttachLocations() {
  return [
    [
      'actions',
      'submit',
      '#submit',
    ],
    [
      'actions',
      'save_continue',
      '#submit',
    ],
  ];
}