You are here

public function ClientsHandlerEntityController::create in Web Service Clients 7.3

Implements EntityAPIControllerInterface.

Overridden to implement factory-by-row pattern.

Overrides EntityAPIController::create

File

includes/clients.controller.inc, line 96
Provides a controller building upon the Entity exportable controller but providing features for handler objects.

Class

ClientsHandlerEntityController
A controller for entities that function as handlers.

Code

public function create(array $values = array()) {

  // Add is_new property if it is not set.
  $values += array(
    'is_new' => TRUE,
  );

  // Get the class to use.
  $class = $this
    ->getClass($values);
  return new $class($values, $this->entityType);
}