You are here

interface TamperableItemInterface in Tamper 8

Interface for an item that can be tampered as part of a plugin's execution.

Hierarchy

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

... See full list

File

src/TamperableItemInterface.php, line 8

Namespace

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

Namesort descending Modifiers Type Description Overrides
TamperableItemInterface::getSource public function Returns the whole item as an array. 2
TamperableItemInterface::getSourceProperty public function Retrieves a source property. 2
TamperableItemInterface::setSourceProperty public function Sets a source property. 2