TestAction.php
Same filename in other branches
Namespace
Drupal\action_bulk_test\Plugin\ActionFile
-
core/
modules/ views/ tests/ modules/ action_bulk_test/ src/ Plugin/ Action/ TestAction.php
View source
<?php
namespace Drupal\action_bulk_test\Plugin\Action;
use Drupal\Core\Access\AccessResult;
use Drupal\Core\Access\AccessResultInterface;
use Drupal\Core\Action\ActionBase;
use Drupal\Core\Action\Attribute\Action;
use Drupal\Core\Session\AccountInterface;
use Drupal\Core\StringTranslation\TranslatableMarkup;
/**
* Test action.
*/
class TestAction extends ActionBase {
/**
* {@inheritdoc}
*/
public function access($object, ?AccountInterface $account = NULL, $return_as_object = FALSE) : bool|AccessResultInterface {
return $return_as_object ? AccessResult::allowed() : TRUE;
}
/**
* {@inheritdoc}
*/
public function execute() : void {
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
TestAction | Test action. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.