You are here

Node.php in Token Content Access 8

Same filename and directory in other branches
  1. 2.0.x modules/tca_node/src/Plugin/TcaPlugin/Node.php

File

modules/tca_node/src/Plugin/TcaPlugin/Node.php
View source
<?php

namespace Drupal\tca_node\Plugin\TcaPlugin;

use Drupal\tca\Plugin\TcaPluginBase;

/**
 * Implements TCA for nodes.
 *
 * @TcaPlugin(
 *  id = "tca_node",
 *  label = @Translation("Node"),
 *  entityType = "node"
 * )
 */
class Node extends TcaPluginBase {

  /**
   * {@inheritdoc}
   */
  public function isFieldable() {
    return TRUE;
  }

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

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

}

Classes

Namesort descending Description
Node Implements TCA for nodes.