You are here

public function Flow::getController in CMS Content Sync 2.1.x

Provide the controller to act upon the stored configuration.

Return value

IFlowController

File

src/Entity/Flow.php, line 190

Class

Flow
Defines the "Content Sync - Flow" entity.

Namespace

Drupal\cms_content_sync\Entity

Code

public function getController() {
  if (!$this->handler) {
    if ($this->variant === Flow::VARIANT_PER_BUNDLE) {
      $this->handler = new FlowControllerPerBundle($this);
    }
    else {
      $this->handler = new FlowControllerSimple($this);
    }
  }
  return $this->handler;
}