In the component of Article Manager, right after saving the article, it is automatically set as the current version of the article. I can't find the code that it stores the data also to the ucm_history table. I want to make changes to it as when I save the article, it does not automatically become the current version, wherein I need to go to versions toolbar to set it as the current version.
Also, in the global configuration of Articles in the Editing Layout section, since Save History option is set to Yes, I want to get that part of the code so I can make customization which I mentioned earlier but in the com_content/models/article.php on the Save function, it does not include the code for storing data to the ucm_history table.
UPDATE: 4:56pm https://docs.joomla.org/Using_Content_History_in_your_Component#Add_Rows_to_Content_Types_Table
I downloaded the file from this link and after reading the tutorial, there was no special code for using the table of ucm_history, they only added the line of code in a table class: for the component to be able to use content versioning:
JObserverMapper::addObserverClassToClass('JTableObserverContenthistory', 'JoomprosubsTableSubscription', array('typeAlias' => 'com_joomprosubs.subscription'));
But after installing the sample component from the link, it still does not work.