You are here

protected function Bean::setUp in Bean (for Drupal 7) 7

Set up the object instance on construction or unserializiation.

Overrides Entity::setUp

File

includes/bean.core.inc, line 191
Bean classes and plugin interface

Class

Bean
The Bean entity class

Code

protected function setUp() {
  parent::setUp();
  if (!empty($this->type)) {
    $plugin = bean_load_plugin_class($this->type);
    $this
      ->loadUp($plugin);
  }
  return $this;
}