public function EntityHandlerBase::__construct in CMS Content Sync 8
Same name and namespace in other branches
- 2.1.x src/Plugin/EntityHandlerBase.php \Drupal\cms_content_sync\Plugin\EntityHandlerBase::__construct()
- 2.0.x src/Plugin/EntityHandlerBase.php \Drupal\cms_content_sync\Plugin\EntityHandlerBase::__construct()
Constructs a Drupal\rest\Plugin\ResourceBase object.
Parameters
array $configuration: A configuration array containing information about the plugin instance
string $plugin_id: The plugin_id for the plugin instance
mixed $plugin_definition: The plugin implementation definition
\Psr\Log\LoggerInterface $logger: A logger instance
Overrides PluginBase::__construct
File
- src/
Plugin/ EntityHandlerBase.php, line 74
Class
- EntityHandlerBase
- Common base class for entity handler plugins.
Namespace
Drupal\cms_content_sync\PluginCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, LoggerInterface $logger) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->logger = $logger;
$this->entityTypeName = $configuration['entity_type_name'];
$this->bundleName = $configuration['bundle_name'];
$this->settings = $configuration['settings'];
$this->flow = $configuration['sync'];
}