public function CreateNewRevision::__construct in Acquia Content Hub 8.2
CreateNewRevision constructor.
Parameters
\Drupal\acquia_contenthub\StubTracker $stub_tracker: The stub tracker.
File
- src/
EventSubscriber/ PreEntitySave/ CreateNewRevision.php, line 32
Class
- CreateNewRevision
- Prepares the entity for a new revision if it is configured to do so.
Namespace
Drupal\acquia_contenthub\EventSubscriber\PreEntitySaveCode
public function __construct(StubTracker $stub_tracker) {
$this->stubTracker = $stub_tracker;
}