New answers tagged 8
0
votes
Find all content that has Paragraph Content
If you want to remove a paragraph type of my_paragraph_type, but the site says there is content that must be deleted before you can remove, you can use this query to find the exact nodes for the ...
0
votes
Create a link pointing to #
As @4uk4 pointed out the following example would work, except if it's applied to a page routed as canonical URL, this will result not rendering the route that is currently being visited, eg. on a ...
0
votes
How do I add a class to local task links in Twig template?
The accepted answer will remove all other attributes from the link such as data attributes. In Drupal these are used for Javascript and AJAX. In other words it has the potential to break things.
Here'...
0
votes
How to get all services that are tagged with a specific tag in *.services.yml?
You need to implement a service collector to collect your tagged services there is a good explanation about this in the Collecting Services Drupal documentation
Take a look at this example:
# core....
0
votes
Search results only for the current language
There's a community contributed module that aims to solve this issue: Search by current language.
There's no configuration needed, it just a matter of installing and enabling the module and use Drupal'...
0
votes
How to access entity from EntityReferenceItem?
It will save memory to load and process each referenced node individually:
$node_storage = \Drupal::entityTypeManager()->getStorage('node');
foreach ($entity->field_name as $reference) {
$...
0
votes
I want to place my business page linkedin feed onto our Drupal website. Is it possible?
Yes, you can embed your LinkedIn business page feed on a Drupal website to display your latest updates and enhance visitor engagement. Here are the best ways to do it:
Manual Method (Post-by-Post):
Go ...
0
votes
How to change the Add another item button text for a multivalued field?
The suggestion from @beltouche is right. You will want to use the hook_form_alter function. You are on the right path using a custom module.
In your mymodule.module file, you want to check and make ...
Top 50 recent answers are included
Related Tags
8 × 15786theming × 2501
views × 1969
entities × 1652
forms × 1392
nodes × 859
blocks × 642
users × 641
hooks × 536
ajax × 453
webforms × 448
i18n-l10n × 434
taxonomy-terms × 431
migrations × 407
configuration × 395
media × 393
commerce × 391
database × 391
caching × 386
navigation × 370
routes × 357
javascript × 341
files × 316
composer × 276
paragraphs × 263