You are here

public function Node::getFormSubmitHandlerAttachLocations in Token Content Access 2.0.x

Same name and namespace in other branches
  1. 8 modules/tca_node/src/Plugin/TcaPlugin/Node.php \Drupal\tca_node\Plugin\TcaPlugin\Node::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_node/src/Plugin/TcaPlugin/Node.php, line 28

Class

Node
Implements TCA for nodes.

Namespace

Drupal\tca_node\Plugin\TcaPlugin

Code

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