You are here

interface TargetDefinitionInterface in Feeds 8.3

Interface for describing target data.

Hierarchy

Expanded class hierarchy of TargetDefinitionInterface

All classes that implement TargetDefinitionInterface

File

src/TargetDefinitionInterface.php, line 8

Namespace

Drupal\feeds
View source
interface TargetDefinitionInterface {

  /**
   * Helper factory method.
   *
   * @return \Drupal\feeds\TargetDefinitionInterface
   *   A new target definition.
   */
  public static function create();

  /**
   * Returns the target plugin id.
   *
   * @return string
   *   The target plugin id.
   */
  public function getPluginId();

  /**
   * Returns the target label.
   *
   * @return string
   *   The target label.
   */
  public function getLabel();

  /**
   * Returns the target description.
   *
   * @return string
   *   The target description.
   */
  public function getDescription();

  /**
   * Returns whether this target has a given property.
   *
   * @param string $property
   *   The property to check for.
   *
   * @return bool
   *   Returns true if the property exists, and false if not.
   */
  public function hasProperty($property);

  /**
   * Returns the list of properties.
   *
   * @return string[]
   *   A list of property keys.
   */
  public function getProperties();

  /**
   * Returns the label for a given property.
   *
   * @param string $property
   *   The property to get a label for.
   *
   * @return string
   *   The label for a property.
   */
  public function getPropertyLabel($property);

  /**
   * Returns the description for a given property.
   *
   * @param string $property
   *   The property to get a description for.
   *
   * @return string
   *   The description for a property.
   */
  public function getPropertyDescription($property);

  /**
   * Retuns whether a property is unique.
   *
   * @param string $property
   *   The property to check.
   *
   * @return bool
   *   Returns true if the property is unique, and false if not.
   */
  public function isUnique($property);

}

Members

Namesort descending Modifiers Type Description Overrides
TargetDefinitionInterface::create public static function Helper factory method. 2
TargetDefinitionInterface::getDescription public function Returns the target description. 2
TargetDefinitionInterface::getLabel public function Returns the target label. 2
TargetDefinitionInterface::getPluginId public function Returns the target plugin id. 2
TargetDefinitionInterface::getProperties public function Returns the list of properties. 2
TargetDefinitionInterface::getPropertyDescription public function Returns the description for a given property. 2
TargetDefinitionInterface::getPropertyLabel public function Returns the label for a given property. 2
TargetDefinitionInterface::hasProperty public function Returns whether this target has a given property. 2
TargetDefinitionInterface::isUnique public function Retuns whether a property is unique. 2