You are here

class PartyMergeProcessSetHidden in Party 7

@file Contains merge process for setting the hidden flag.

Hierarchy

Expanded class hierarchy of PartyMergeProcessSetHidden

1 string reference to 'PartyMergeProcessSetHidden'
PartyMergeHandler::registerSubProcesses in includes/entity_merge/handlers/party.inc
Overrides EntityMergeHandlerDefault::registerSubProcesses().

File

includes/entity_merge/processes/party.set_hidden.inc, line 7
Contains merge process for setting the hidden flag.

View source
class PartyMergeProcessSetHidden extends EntityMergeProcessBase {

  /**
   * Overrides EntityMergeProcessBase::run()
   */
  public function run(&$context = array()) {

    // Mark the second party as merged and save.
    $this->entity2->hidden = TRUE;
    $this->entity2->merged_party = $this->entity1->pid;
    $this->entity2
      ->save();
    parent::run($context);
  }

  /**
   * {@inheritdoc}
   */
  public function getProgressMessage(&$context = array()) {
    return t('Marking secondary party as merged.');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
PartyMergeProcessSetHidden::getProgressMessage public function
PartyMergeProcessSetHidden::run public function Overrides EntityMergeProcessBase::run()