Skip to content

Commit

Permalink
Merge pull request #176 from acquia-pso/DEG-172
Browse files Browse the repository at this point in the history
DEG-172: Error message corrected and updated doc.
  • Loading branch information
omkar-pednekar authored Jun 6, 2021
2 parents 76997f0 + c8e2ada commit bab4c07
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 13 deletions.
Binary file modified docs/build/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/build/doctrees/installation.doctree
Binary file not shown.
10 changes: 6 additions & 4 deletions docs/build/html/_sources/installation.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,17 @@ Create a Google spreadsheet for defining all drupal entities like `DEG sample t

Configure DEG on Drupal
------------------------

.. Important::
* **Private file system** should be configured before configuring DEG.
* To configure **Private file system**, refer **Private file path** section in `settings.php` file to configure it.

* Login as Administrator on site
* Go to menu Configuration -> Development -> Drupal Spec tool: Entity Generate -> Google Sheet API (/admin/config/dst_entity_generate/settings/google_sheet_api)
* And follow the steps for configuration fo Google spreadsheet in DEG tool.
* Finally, It will redirect to General Settings (/admin/config/dst_entity_generate/settings) where we can enable the entity types.


.. Important::

* **Private** file directory should be configured in Drupal.
.. Note::
* See **Recent log messages** of Drupal if any errors occur.


Expand Down
12 changes: 9 additions & 3 deletions docs/build/html/installation.html
Original file line number Diff line number Diff line change
Expand Up @@ -197,16 +197,22 @@ <h2>Download using composer<a class="headerlink" href="#download-using-composer"
</div>
<div class="section" id="configure-deg-on-drupal">
<h2>Configure DEG on Drupal<a class="headerlink" href="#configure-deg-on-drupal" title="Permalink to this headline"></a></h2>
<div class="admonition important">
<p class="admonition-title">Important</p>
<ul class="simple">
<li><p><strong>Private file system</strong> should be configured before configuring DEG.</p></li>
<li><p>To configure <strong>Private file system</strong>, refer <strong>Private file path</strong> section in <cite>settings.php</cite> file to configure it.</p></li>
</ul>
</div>
<ul class="simple">
<li><p>Login as Administrator on site</p></li>
<li><p>Go to menu Configuration -&gt; Development -&gt; Drupal Spec tool: Entity Generate -&gt; Google Sheet API (/admin/config/dst_entity_generate/settings/google_sheet_api)</p></li>
<li><p>And follow the steps for configuration fo Google spreadsheet in DEG tool.</p></li>
<li><p>Finally, It will redirect to General Settings (/admin/config/dst_entity_generate/settings) where we can enable the entity types.</p></li>
</ul>
<div class="admonition important">
<p class="admonition-title">Important</p>
<div class="admonition note">
<p class="admonition-title">Note</p>
<ul class="simple">
<li><p><strong>Private</strong> file directory should be configured in Drupal.</p></li>
<li><p>See <strong>Recent log messages</strong> of Drupal if any errors occur.</p></li>
</ul>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/build/html/searchindex.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions docs/source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,17 @@ Create a Google spreadsheet for defining all drupal entities like `DEG sample t

Configure DEG on Drupal
------------------------

.. Important::
* **Private file system** should be configured before configuring DEG.
* To configure **Private file system**, refer **Private file path** section in `settings.php` file to configure it.

* Login as Administrator on site
* Go to menu Configuration -> Development -> Drupal Spec tool: Entity Generate -> Google Sheet API (/admin/config/dst_entity_generate/settings/google_sheet_api)
* And follow the steps for configuration fo Google spreadsheet in DEG tool.
* Finally, It will redirect to General Settings (/admin/config/dst_entity_generate/settings) where we can enable the entity types.


.. Important::

* **Private** file directory should be configured in Drupal.
.. Note::
* See **Recent log messages** of Drupal if any errors occur.


Expand Down
2 changes: 1 addition & 1 deletion src/Form/GoogleSheetApiSetting.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
if (empty($file_private_path)) {
$form['private_directory_message'] = [
'#type' => 'item',
'#markup' => '<div class="messages messages--error"><b>' . $this->t('Please configure private file path.') . '</b></div>',
'#markup' => '<div class="messages messages--error"><b>' . $this->t('Private file system is not configured. Refer "Private file path" section in settings.php file to configure it.') . '</b></div>',
];
}

Expand Down

0 comments on commit bab4c07

Please sign in to comment.