class OperationBase
Same name in other branches
- 9 core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/Operation/test/OperationBase.php \Drupal\image_test\Plugin\ImageToolkit\Operation\test\OperationBase
- 8.9.x core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/Operation/test/OperationBase.php \Drupal\image_test\Plugin\ImageToolkit\Operation\test\OperationBase
- 11.x core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/Operation/test/OperationBase.php \Drupal\image_test\Plugin\ImageToolkit\Operation\test\OperationBase
Provides a base class for test operations.
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\ImageToolkit\ImageToolkitOperationBase extends \Drupal\Core\Plugin\PluginBase implements \Drupal\Core\ImageToolkit\ImageToolkitOperationInterface
- class \Drupal\image_test\Plugin\ImageToolkit\Operation\test\OperationBase extends \Drupal\Core\ImageToolkit\ImageToolkitOperationBase
- class \Drupal\Core\ImageToolkit\ImageToolkitOperationBase extends \Drupal\Core\Plugin\PluginBase implements \Drupal\Core\ImageToolkit\ImageToolkitOperationInterface
- 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 OperationBase
File
-
core/
modules/ system/ tests/ modules/ image_test/ src/ Plugin/ ImageToolkit/ Operation/ test/ OperationBase.php, line 10
Namespace
Drupal\image_test\Plugin\ImageToolkit\Operation\testView source
abstract class OperationBase extends ImageToolkitOperationBase {
/**
* {@inheritdoc}
*/
public function arguments() {
return [];
}
/**
* {@inheritdoc}
*/
public function execute(array $arguments) {
// Nothing to do.
return TRUE;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
ImageToolkitOperationBase::$logger | protected | property | A logger instance. | ||
ImageToolkitOperationBase::$toolkit | protected | property | The image toolkit. | ||
ImageToolkitOperationBase::apply | final public | function | Applies a toolkit specific operation to an image. | Overrides ImageToolkitOperationInterface::apply | |
ImageToolkitOperationBase::getToolkit | protected | function | Returns the image toolkit instance for this operation. | 1 | |
ImageToolkitOperationBase::prepareArguments | protected | function | Checks for required arguments and adds optional argument defaults. | ||
ImageToolkitOperationBase::validateArguments | protected | function | Validates the arguments. | 6 | |
ImageToolkitOperationBase::__construct | public | function | Constructs an image toolkit operation plugin. | ||
OperationBase::arguments | public | function | Returns the definition of the operation arguments. | Overrides ImageToolkitOperationBase::arguments | |
OperationBase::execute | public | function | Performs the actual manipulation on the image. | Overrides ImageToolkitOperationBase::execute | 1 |
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.