You are here

protected function BoxEntityAPIController::setPlugin in Boxes 7.2

1 call to BoxEntityAPIController::setPlugin()
BoxEntityAPIController::load in includes/boxes.core.inc
Overridden.

File

includes/boxes.core.inc, line 374
Box classes and plugin interface

Class

BoxEntityAPIController

Code

protected function setPlugin(Box $box) {
  static $plugins = array();
  if (empty($plugins[$box->type])) {
    $plugins[$box->type] = boxes_load_plugin_class($box->type);
    $box
      ->loadUp($plugins[$box->type]);
  }
}