class NoType

Same name and namespace in other branches
  1. 9 core/modules/system/tests/modules/action_test/src/Plugin/Action/NoType.php \Drupal\action_test\Plugin\Action\NoType
  2. 8.9.x core/modules/system/tests/modules/action_test/src/Plugin/Action/NoType.php \Drupal\action_test\Plugin\Action\NoType
  3. 10 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.

Hierarchy

Expanded class hierarchy of NoType

File

core/modules/system/tests/modules/action_test/src/Plugin/Action/NoType.php, line 14

Namespace

Drupal\action_test\Plugin\Action
View 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.