class BrokenToolkit in Drupal 8
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
- 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.
Plugin annotation
@ImageToolkit(
id = "broken",
title = @Translation("A dummy toolkit that is broken")
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, MessengerTrait, StringTranslationTrait
- class \Drupal\Core\ImageToolkit\ImageToolkitBase implements ImageToolkitInterface
- class \Drupal\image_test\Plugin\ImageToolkit\TestToolkit
- class \Drupal\image_test\Plugin\ImageToolkit\BrokenToolkit
- class \Drupal\image_test\Plugin\ImageToolkit\TestToolkit
- class \Drupal\Core\ImageToolkit\ImageToolkitBase implements ImageToolkitInterface
- class \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, MessengerTrait, StringTranslationTrait
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BrokenToolkit:: |
public static | function |
Verifies that the Image Toolkit is set up correctly. Overrides TestToolkit:: |
|
DependencySerializationTrait:: |
protected | property | An array of entity type IDs keyed by the property name of their storages. | |
DependencySerializationTrait:: |
protected | property | An array of service IDs keyed by property name used for serialization. | |
DependencySerializationTrait:: |
public | function | 1 | |
DependencySerializationTrait:: |
public | function | 2 | |
ImageToolkitBase:: |
protected | property | The config factory. | |
ImageToolkitBase:: |
protected | property | A logger instance. | |
ImageToolkitBase:: |
protected | property | The image toolkit operation manager. | |
ImageToolkitBase:: |
protected | property | Path of the image file. | |
ImageToolkitBase:: |
public | function |
Gets toolkit requirements in a format suitable for hook_requirements(). Overrides ImageToolkitInterface:: |
1 |
ImageToolkitBase:: |
public | function |
Gets the source path of the image file. Overrides ImageToolkitInterface:: |
|
ImageToolkitBase:: |
protected | function | Gets a toolkit operation plugin instance. | |
ImageToolkitBase:: |
public | function |
Sets the source path of the image file. Overrides ImageToolkitInterface:: |
|
MessengerTrait:: |
protected | property | The messenger. | 29 |
MessengerTrait:: |
public | function | Gets the messenger. | 29 |
MessengerTrait:: |
public | function | Sets the messenger. | |
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
3 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. | |
StringTranslationTrait:: |
protected | property | The string translation service. | 1 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. | |
TestToolkit:: |
protected | property | The height of the image. | |
TestToolkit:: |
protected | property | The state service. | |
TestToolkit:: |
protected | property | Image type represented by a PHP IMAGETYPE_* constant (e.g. IMAGETYPE_JPEG). | |
TestToolkit:: |
protected | property | The width of the image. | |
TestToolkit:: |
public | function |
Applies a toolkit operation to an image. Overrides ImageToolkitBase:: |
|
TestToolkit:: |
public | function |
Form constructor. Overrides PluginFormInterface:: |
|
TestToolkit:: |
public static | function |
Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface:: |
|
TestToolkit:: |
public | function |
Returns the height of the image. Overrides ImageToolkitInterface:: |
|
TestToolkit:: |
public | function |
Returns the MIME type of the image file. Overrides ImageToolkitInterface:: |
|
TestToolkit:: |
public static | function |
Returns a list of image file extensions supported by the toolkit. Overrides ImageToolkitInterface:: |
|
TestToolkit:: |
public | function | Returns the type of the image. | |
TestToolkit:: |
public | function |
Returns the width of the image. Overrides ImageToolkitInterface:: |
|
TestToolkit:: |
public | function |
Checks if the image is valid. Overrides ImageToolkitInterface:: |
|
TestToolkit:: |
protected | function | Stores the values passed to a toolkit call. | |
TestToolkit:: |
public | function |
Determines if a file contains a valid image. Overrides ImageToolkitInterface:: |
|
TestToolkit:: |
public | function |
Writes an image resource to a destination file. Overrides ImageToolkitInterface:: |
|
TestToolkit:: |
public | function | Sets the PHP type of the image. | |
TestToolkit:: |
public | function |
Form submission handler. Overrides PluginFormInterface:: |
|
TestToolkit:: |
protected static | function | Returns a list of image types supported by the toolkit. | |
TestToolkit:: |
public | function |
Form validation handler. Overrides ImageToolkitBase:: |
|
TestToolkit:: |
public | function |
Constructs a TestToolkit object. Overrides ImageToolkitBase:: |