Hot answers tagged

3 votes
Accepted

I am trying to install Drupal Commerce, I get error that prevents installation, I don't get what it says about ../private folder

The private files directory is a standard Drupal setup task, and is well-documented. Below is its description in default.settings.php. It is in settings.php where you configure this directory. Not ...
cilefen's user avatar
  • 5,557
2 votes

How can I have updated content entity data immediately available after update?

It could be the way you reference the custom entity. If users reference the custom entity, the render cache will be invalidated when updating the references. If you reference backward, from the custom ...
4uk4's user avatar
  • 98.1k
1 vote

Adding a default text

Solution for option-1 : {% if node.field_example.value is empty %} <span>Bye</span> {% endif %}
hetal chavda's user avatar
1 vote

How can I have updated content entity data immediately available after update?

This is generic code that use to invalidate tags: use Drupal\Core\Cache\Cache; Cache::invalidateTags($node->getCacheTags()); Note: where $node denotes entity object whose tags needs to invalidate ...
mini's user avatar
  • 682

Only top scored, non community-wiki answers of a minimum length are eligible