class NoType
Same name in other branches
- 9 core/modules/system/tests/modules/action_test/src/Plugin/Action/NoType.php \Drupal\action_test\Plugin\Action\NoType
- 10 core/modules/system/tests/modules/action_test/src/Plugin/Action/NoType.php \Drupal\action_test\Plugin\Action\NoType
- 11.x core/modules/system/tests/modules/action_test/src/Plugin/Action/NoType.php \Drupal\action_test\Plugin\Action\NoType
Provides an operation with no type specified.
Plugin annotation
@Action(
id = "action_test_no_type",
label = @Translation("An operation with no type specified")
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\Core\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait
- class \Drupal\Core\Action\ActionBase extends \Drupal\Core\Plugin\PluginBase implements \Drupal\Core\Action\ActionInterface
- class \Drupal\action_test\Plugin\Action\NoType extends \Drupal\Core\Action\ActionBase
- class \Drupal\Core\Action\ActionBase extends \Drupal\Core\Plugin\PluginBase implements \Drupal\Core\Action\ActionInterface
- class \Drupal\Core\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait
Expanded class hierarchy of NoType
File
-
core/
modules/ system/ tests/ modules/ action_test/ src/ Plugin/ Action/ NoType.php, line 17
Namespace
Drupal\action_test\Plugin\ActionView source
class NoType extends ActionBase {
/**
* {@inheritdoc}
*/
public function execute($entity = NULL) {
}
/**
* {@inheritdoc}
*/
public function access($object, AccountInterface $account = NULL, $return_as_object = FALSE) {
$result = AccessResult::allowed();
return $return_as_object ? $result : $result->isAllowed();
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
ActionBase::executeMultiple | public | function | Executes the plugin for an array of objects. | Overrides ActionInterface::executeMultiple | 3 |
NoType::access | public | function | Checks object access. | Overrides ActionInterface::access | |
NoType::execute | public | function | Executes the plugin. | Overrides ExecutableInterface::execute | |
PluginInspectionInterface::getPluginDefinition | public | function | Gets the definition of the plugin implementation. | 6 | |
PluginInspectionInterface::getPluginId | public | function | Gets the plugin_id of the plugin instance. | 2 |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.