NoType.php

Contains \Drupal\action_test\Plugin\Action\NoType.

Namespace

Drupal\action_test\Plugin\Action

File

drupal/core/modules/system/tests/modules/action_test/lib/Drupal/action_test/Plugin/Action/NoType.php
View source
<?php

/**
 * @file
 * Contains \Drupal\action_test\Plugin\Action\NoType.
 */
namespace Drupal\action_test\Plugin\Action;

use Drupal\Core\Annotation\Action;
use Drupal\Core\Annotation\Translation;
use Drupal\Core\Action\ActionBase;

/**
 * Provides an operation with no type specified.
 *
 * @Action(
 *   id = "action_test_no_type",
 *   label = @Translation("An operation with no type specified")
 * )
 */
class NoType extends ActionBase {

  /**
   * {@inheritdoc}
   */
  public function execute($entity = NULL) {
  }

}

Classes

Namesort descending Description
NoType Provides an operation with no type specified.