public function FlowControllerBase::getEntityTypeHandler in CMS Content Sync 2.1.x
The the entity type handler for the given config.
Parameters
$config: {@see Flow::getEntityTypeConfig()}
Return value
\Drupal\cms_content_sync\Plugin\EntityHandlerInterface
File
- src/
Controller/ FlowControllerBase.php, line 337
Class
Namespace
Drupal\cms_content_sync\ControllerCode
public function getEntityTypeHandler(string $entity_type_name, string $bundle_name, $config) {
$entityPluginManager = \Drupal::service('plugin.manager.cms_content_sync_entity_handler');
return $entityPluginManager
->createInstance($config['handler'], [
'entity_type_name' => $entity_type_name,
'bundle_name' => $bundle_name,
'settings' => $config,
'sync' => $this->flow,
]);
}