You are here

class Tamper in Tamper 8

Defines a Tamper annotation object.

Tamperers handle the tampering of data.

Hierarchy

Expanded class hierarchy of Tamper

See also

\Drupal\tamper\TamperPluginManager

\Drupal\tamper\TamperInterface

1 string reference to 'Tamper'
tamper.info.yml in ./tamper.info.yml
tamper.info.yml
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.

... See full list

File

src/Annotation/Tamper.php, line 17

Namespace

Drupal\tamper\Annotation
View 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

Namesort descending Modifiers Type Description Overrides
Plugin::$definition protected property The plugin definition read from the class annotation. 1
Plugin::get public function Gets the value of an annotation. Overrides AnnotationInterface::get 5
Plugin::getClass public function Gets the class of the annotated class. Overrides AnnotationInterface::getClass
Plugin::getId public function Gets the unique ID for this annotated class. Overrides AnnotationInterface::getId
Plugin::getProvider public function Gets the name of the provider of the annotated class. Overrides AnnotationInterface::getProvider
Plugin::parse protected function Parses an annotation into its definition.
Plugin::setClass public function Sets the class of the annotated class. Overrides AnnotationInterface::setClass
Plugin::setProvider public function Sets the name of the provider of the annotated class. Overrides AnnotationInterface::setProvider
Plugin::__construct public function Constructs a Plugin object. 2
Tamper::$category public property The category under which the tamper plugin should be listed in the UI.
Tamper::$description public property A short description of the tamper plugin.
Tamper::$handle_multiples public property Whether the plugin handles multiples itself.
Tamper::$id public property The plugin ID.
Tamper::$label public property The human-readable name of the tamper plugin.