Product.php in Token Content Access 8
File
modules/tca_commerce_product/src/Plugin/TcaPlugin/Product.php
View source
<?php
namespace Drupal\tca_commerce_product\Plugin\TcaPlugin;
use Drupal\tca\Plugin\TcaPluginBase;
class Product extends TcaPluginBase {
public function isFieldable() {
return TRUE;
}
public function getFormSubmitHandlerAttachLocations() {
return [
[
'actions',
'submit',
'#submit',
],
];
}
public function getBundleFormSubmitHandlerAttachLocations() {
return [
[
'actions',
'submit',
'#submit',
],
[
'actions',
'save_continue',
'#submit',
],
];
}
}
Classes
Name |
Description |
Product |
Implements TCA for commerce products. |