interface TamperableItemInterface in Tamper 8
Interface for an item that can be tampered as part of a plugin's execution.
Hierarchy
- interface \Drupal\tamper\TamperableItemInterface
Expanded class hierarchy of TamperableItemInterface
All classes that implement TamperableItemInterface
36 files declare their use of TamperableItemInterface
- ArrayFilter.php in src/
Plugin/ Tamper/ ArrayFilter.php - CastToInt.php in src/
Plugin/ Tamper/ CastToInt.php - ConvertBoolean.php in src/
Plugin/ Tamper/ ConvertBoolean.php - ConvertCase.php in src/
Plugin/ Tamper/ ConvertCase.php - Copy.php in src/
Plugin/ Tamper/ Copy.php
File
- src/
TamperableItemInterface.php, line 8
Namespace
Drupal\tamperView source
interface TamperableItemInterface {
/**
* Returns the whole item as an array.
*
* @return array
* An array of the source data.
*/
public function getSource();
/**
* Sets a source property.
*
* @param string $property
* A property on the source.
* @param mixed $data
* The property value to set on the source.
*/
public function setSourceProperty($property, $data);
/**
* Retrieves a source property.
*
* @param string $property
* A property on the source.
*
* @return mixed|null
* The found returned property or NULL if not found.
*/
public function getSourceProperty($property);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TamperableItemInterface:: |
public | function | Returns the whole item as an array. | 2 |
TamperableItemInterface:: |
public | function | Retrieves a source property. | 2 |
TamperableItemInterface:: |
public | function | Sets a source property. | 2 |