You are here

public function EntityReference_BehaviorHandler_Abstract::__construct in Entity reference 7

Constructor for the behavior.

Parameters

$behavior: The name of the behavior plugin.

Overrides EntityReference_BehaviorHandler::__construct

File

plugins/behavior/abstract.inc, line 157

Class

EntityReference_BehaviorHandler_Abstract
An abstract implementation of EntityReference_BehaviorHandler.

Code

public function __construct($behavior) {
  $this->behavior = $behavior;
  ctools_include('plugins');
  $plugin = ctools_get_plugins('entityreference', 'behavior', $behavior);
  $this->plugin = $plugin;
}