class BrokenToolkit
Same name and namespace in other branches
- 9 core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/BrokenToolkit.php \Drupal\image_test\Plugin\ImageToolkit\BrokenToolkit
- 8.9.x core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/BrokenToolkit.php \Drupal\image_test\Plugin\ImageToolkit\BrokenToolkit
- 10 core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/BrokenToolkit.php \Drupal\image_test\Plugin\ImageToolkit\BrokenToolkit
Defines a Test toolkit for image manipulation within Drupal.
Attributes
Hierarchy
- class \Drupal\Component\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\Core\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait implements \Drupal\Component\Plugin\PluginBase
- class \Drupal\Core\ImageToolkit\ImageToolkitBase extends \Drupal\Core\ImageToolkit\ImageToolkitInterface implements \Drupal\Core\Plugin\PluginBase
- class \Drupal\image_test\Plugin\ImageToolkit\TestToolkit implements \Drupal\Core\ImageToolkit\ImageToolkitBase
- class \Drupal\image_test\Plugin\ImageToolkit\BrokenToolkit implements \Drupal\image_test\Plugin\ImageToolkit\TestToolkit
- class \Drupal\image_test\Plugin\ImageToolkit\TestToolkit implements \Drupal\Core\ImageToolkit\ImageToolkitBase
- class \Drupal\Core\ImageToolkit\ImageToolkitBase extends \Drupal\Core\ImageToolkit\ImageToolkitInterface implements \Drupal\Core\Plugin\PluginBase
- class \Drupal\Core\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait implements \Drupal\Component\Plugin\PluginBase
Expanded class hierarchy of BrokenToolkit
File
-
core/
modules/ system/ tests/ modules/ image_test/ src/ Plugin/ ImageToolkit/ BrokenToolkit.php, line 13
Namespace
Drupal\image_test\Plugin\ImageToolkitView source
class BrokenToolkit extends TestToolkit {
/**
* {@inheritdoc}
*/
public static function isAvailable() {
return FALSE;
}
}
Members
Title Sort descending | Deprecated | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|---|
BrokenToolkit::isAvailable | public static | function | Verifies that the Image Toolkit is set up correctly. | Overrides TestToolkit::isAvailable | ||
DependencySerializationTrait::$_entityStorages | protected | property | An array of entity type IDs keyed by the property name of their storages. | |||
DependencySerializationTrait::$_serviceIds | protected | property | An array of service IDs keyed by property name used for serialization. | |||
DependencySerializationTrait::__sleep | public | function | 3 | |||
DependencySerializationTrait::__wakeup | public | function | 3 | |||
ImageToolkitBase::$configFactory | protected | property | The config factory. | |||
ImageToolkitBase::$logger | protected | property | A logger instance. | |||
ImageToolkitBase::$operationManager | protected | property | The image toolkit operation manager. | |||
ImageToolkitBase::$source | protected | property | Path of the image file. | |||
ImageToolkitBase::getRequirements | public | function | Gets toolkit requirements in a format suitable for hook_requirements(). | Overrides ImageToolkitInterface::getRequirements | 1 | |
ImageToolkitBase::getSource | public | function | Gets the source path of the image file. | Overrides ImageToolkitInterface::getSource | ||
ImageToolkitBase::getToolkitOperation | protected | function | Gets a toolkit operation plugin instance. | |||
ImageToolkitBase::setSource | public | function | Sets the source path of the image file. | Overrides ImageToolkitInterface::setSource | ||
MessengerTrait::$messenger | protected | property | The messenger. | 25 | ||
MessengerTrait::messenger | public | function | Gets the messenger. | 25 | ||
MessengerTrait::setMessenger | public | function | Sets the messenger. | |||
PluginBase::$configuration | protected | property | Configuration information passed into the plugin. | 1 | ||
PluginBase::$pluginDefinition | protected | property | The plugin implementation definition. | 1 | ||
PluginBase::$pluginId | protected | property | The plugin ID. | |||
PluginBase::DERIVATIVE_SEPARATOR | constant | A string which is used to separate base plugin IDs from the derivative ID. | ||||
PluginBase::getBaseId | public | function | Gets the base_plugin_id of the plugin instance. | Overrides DerivativeInspectionInterface::getBaseId | ||
PluginBase::getDerivativeId | public | function | Gets the derivative_id of the plugin instance. | Overrides DerivativeInspectionInterface::getDerivativeId | ||
PluginBase::getPluginDefinition | public | function | Gets the definition of the plugin implementation. | Overrides PluginInspectionInterface::getPluginDefinition | 2 | |
PluginBase::getPluginId | public | function | Gets the plugin ID of the plugin instance. | Overrides PluginInspectionInterface::getPluginId | ||
PluginBase::isConfigurable | Deprecated | public | function | Determines if the plugin is configurable. | ||
StringTranslationTrait::$stringTranslation | protected | property | The string translation service. | 3 | ||
StringTranslationTrait::formatPlural | protected | function | Formats a string containing a count of items. | |||
StringTranslationTrait::getNumberOfPlurals | protected | function | Returns the number of plurals supported by a given language. | |||
StringTranslationTrait::getStringTranslation | protected | function | Gets the string translation service. | |||
StringTranslationTrait::setStringTranslation | public | function | Sets the string translation service to use. | 2 | ||
StringTranslationTrait::t | protected | function | Translates a string to the current language or to a given language. | 1 | ||
TestToolkit::$height | protected | property | The height of the image. | |||
TestToolkit::$state | protected | property | The state service. | |||
TestToolkit::$type | protected | property | Image type represented by a PHP IMAGETYPE_* constant (e.g. IMAGETYPE_JPEG). | |||
TestToolkit::$width | protected | property | The width of the image. | |||
TestToolkit::apply | public | function | Applies a toolkit operation to an image. | Overrides ImageToolkitBase::apply | ||
TestToolkit::buildConfigurationForm | public | function | Form constructor. | Overrides PluginFormInterface::buildConfigurationForm | ||
TestToolkit::create | public static | function | Creates an instance of the plugin. | Overrides ContainerFactoryPluginInterface::create | ||
TestToolkit::getHeight | public | function | Returns the height of the image. | Overrides ImageToolkitInterface::getHeight | ||
TestToolkit::getMimeType | public | function | Returns the MIME type of the image file. | Overrides ImageToolkitInterface::getMimeType | ||
TestToolkit::getSupportedExtensions | public static | function | Returns a list of image file extensions supported by the toolkit. | Overrides ImageToolkitInterface::getSupportedExtensions | ||
TestToolkit::getType | public | function | Returns the type of the image. | |||
TestToolkit::getWidth | public | function | Returns the width of the image. | Overrides ImageToolkitInterface::getWidth | ||
TestToolkit::isValid | public | function | Checks if the image is valid. | Overrides ImageToolkitInterface::isValid | ||
TestToolkit::logCall | protected | function | Stores the values passed to a toolkit call. | |||
TestToolkit::parseFile | public | function | Determines if a file contains a valid image. | Overrides ImageToolkitInterface::parseFile | ||
TestToolkit::save | public | function | Writes an image resource to a destination file. | Overrides ImageToolkitInterface::save | ||
TestToolkit::setType | public | function | Sets the PHP type of the image. | |||
TestToolkit::submitConfigurationForm | public | function | Form submission handler. | Overrides PluginFormInterface::submitConfigurationForm | ||
TestToolkit::supportedTypes | protected static | function | Returns a list of image types supported by the toolkit. | |||
TestToolkit::validateConfigurationForm | public | function | Form validation handler. | Overrides ImageToolkitBase::validateConfigurationForm | ||
TestToolkit::__construct | public | function | Constructs a TestToolkit object. | Overrides ImageToolkitBase::__construct |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.