protected function BeanEntityAPIController::setPlugin in Bean (for Drupal 7) 7
1 call to BeanEntityAPIController::setPlugin()
- BeanEntityAPIController::attachLoad in includes/
bean.core.inc - Overridden.
File
- includes/
bean.core.inc, line 453 - Bean classes and plugin interface
Class
Code
protected function setPlugin(Bean $bean) {
static $plugins = array();
if (empty($plugins[$bean->type])) {
$plugins[$bean->type] = bean_load_plugin_class($bean->type);
$bean
->loadUp($plugins[$bean->type]);
}
}