You are here

interface ServicesClientConditionInterface in Services Client 7.2

Interface for implementing entity condition matching.

Hierarchy

Expanded class hierarchy of ServicesClientConditionInterface

All classes that implement ServicesClientConditionInterface

File

include/condition.inc, line 6

View source
interface ServicesClientConditionInterface {

  /**
   * Retrieve condition summary for UI.
   *
   * @return string
   *   UI short summary.
   */
  public function getSummary();

  /**
   * Check if entity matches condition.
   *
   * @param stdClass $entity
   *   Drupal entity that should be matched.
   *
   * @return bool
   *   TRUE if matches condition.
   */
  public function match($entity);

}

Members

Namesort descending Modifiers Type Description Overrides
ServicesClientConditionInterface::getSummary public function Retrieve condition summary for UI. 3
ServicesClientConditionInterface::match public function Check if entity matches condition. 3