You are here

public function Product::getFormSubmitHandlerAttachLocations 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::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 TcaPluginBase::getFormSubmitHandlerAttachLocations

File

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

Class

Product
Implements TCA for commerce products.

Namespace

Drupal\tca_commerce_product\Plugin\TcaPlugin

Code

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