class Tamper in Tamper 8
Defines a Tamper annotation object.
Tamperers handle the tampering of data.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\tamper\Annotation\Tamper
Expanded class hierarchy of Tamper
See also
\Drupal\tamper\TamperPluginManager
\Drupal\tamper\TamperInterface
1 string reference to 'Tamper'
32 classes are annotated with Tamper
- ArrayFilter in src/
Plugin/ Tamper/ ArrayFilter.php - Plugin implementation for filtering data.
- CastToInt in src/
Plugin/ Tamper/ CastToInt.php - Plugin implementation for casting to integer.
- ConvertBoolean in src/
Plugin/ Tamper/ ConvertBoolean.php - Plugin implementation for converting text value to boolean value.
- ConvertCase in src/
Plugin/ Tamper/ ConvertCase.php - Plugin implementation for converting case.
- Copy in src/
Plugin/ Tamper/ Copy.php - Plugin implementation of the copy plugin.
File
- src/
Annotation/ Tamper.php, line 17
Namespace
Drupal\tamper\AnnotationView source
class Tamper extends Plugin {
/**
* The plugin ID.
*
* @var string
*/
public $id;
/**
* The human-readable name of the tamper plugin.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $label;
/**
* A short description of the tamper plugin.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $description;
/**
* The category under which the tamper plugin should be listed in the UI.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $category = '';
/**
* Whether the plugin handles multiples itself.
*
* Typically plugins that have handle_multiples as TRUE will expect an array
* as input and iterate over it themselves, changing the whole array.
*
* @var bool
*/
public $handle_multiples = FALSE;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 2 |
Tamper:: |
public | property | The category under which the tamper plugin should be listed in the UI. | |
Tamper:: |
public | property | A short description of the tamper plugin. | |
Tamper:: |
public | property | Whether the plugin handles multiples itself. | |
Tamper:: |
public | property | The plugin ID. | |
Tamper:: |
public | property | The human-readable name of the tamper plugin. |