You are here

interface DrupalCommerceEntityControllerInterface in Commerce Core 7

Interface for the default Drupal Commerce entity controller.

Hierarchy

Expanded class hierarchy of DrupalCommerceEntityControllerInterface

All classes that implement DrupalCommerceEntityControllerInterface

File

includes/commerce.controller.inc, line 14
Provides a central controller for Drupal Commerce.

View source
interface DrupalCommerceEntityControllerInterface extends EntityAPIControllerInterface {

  /**
   * Determines whether or not the given entity object was loaded directly from
   * the database to represent the unchanged version of the entity.
   *
   * @param object $entity
   *   The entity to check.
   *
   * @return bool
   *   TRUE if the entity is "unchanged", FALSE otherwise.
   */
  public function isUnchanged($entity);

}

Members

Namesort descending Modifiers Type Description Overrides
DrupalCommerceEntityControllerInterface::isUnchanged public function Determines whether or not the given entity object was loaded directly from the database to represent the unchanged version of the entity. 1
DrupalEntityControllerInterface::load public function Loads one or more entities. 1
DrupalEntityControllerInterface::resetCache public function Resets the internal, static entity cache. 1
EntityAPIControllerInterface::buildContent public function Builds a structured array representing the entity's content. 1
EntityAPIControllerInterface::create public function Create a new entity. 1
EntityAPIControllerInterface::delete public function Delete permanently saved entities. 1
EntityAPIControllerInterface::export public function Exports an entity as serialized string. 1
EntityAPIControllerInterface::import public function Imports an entity from a string. 1
EntityAPIControllerInterface::invoke public function Invokes a hook on behalf of the entity. For hooks that have a respective field API attacher like insert/update/.. the attacher is called too. 1
EntityAPIControllerInterface::save public function Permanently saves the given entity. 1
EntityAPIControllerInterface::view public function Generate an array for rendering the given entities. 1