class OperationBase

Same name in other branches
  1. 9 core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/Operation/test/OperationBase.php \Drupal\image_test\Plugin\ImageToolkit\Operation\test\OperationBase
  2. 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
  3. 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

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\test
View 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.