Sorry, this entry is only available in Russian.
Category: Drupal 8
получение данных параграфа с ноды
$node = \Drupal\node\Entity\Node::load($nid);
$node->field_kharakteristiki[0]->entity->field_title->value;
Kint limit
<?php
kint_require();
Kint::$maxLevels = 4;
kint($node);
drush composer subsytem linux in Windows 10
composer global require drush/drush:8 nano .profile add PATH="$HOME/.config/composer/vendor/bin:$PATH" source ~/.profile
Drupal 8 twig print without comments
{{ content.field_ssylka|render|striptags|trim }}
example:
<a href="{{ content.field_ssylka|render|striptags|trim }}">
{{ content.field_ikonka_sverkhu }}
{{ content.field_jgb }}
</a>