public function Flow::getController in CMS Content Sync 2.1.x
Provide the controller to act upon the stored configuration.
Return value
File
- src/
Entity/ Flow.php, line 190
Class
- Flow
- Defines the "Content Sync - Flow" entity.
Namespace
Drupal\cms_content_sync\EntityCode
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;
}