You are here

protected function Workflow::preRebuild in Workflow 7.2

Rebuild things that get saved with this entity.

1 call to Workflow::preRebuild()
Workflow::save in includes/Entity/Workflow.php
Given information, update or insert a new workflow.

File

includes/Entity/Workflow.php, line 90
Contains workflow\includes\Entity\Workflow. Contains workflow\includes\Entity\WorkflowController.

Class

Workflow

Code

protected function preRebuild() {

  // Remap roles. They can come from another system with shifted role IDs.
  // See also https://drupal.org/node/1702626 .
  $this->tab_roles = $this
    ->rebuildRoles($this->tab_roles);

  // After update.php or import feature, label might be empty. @todo: remove in D8.
  if (empty($this->label)) {
    $this->label = $this->name;
  }
}