Skip to main content
Nic's user avatar
Nic's user avatar
Nic's user avatar
Nic
  • Member for 13 years, 1 month
  • Last seen more than 3 years ago
20 votes
6 answers
18k views

How can I control block visibility with code?

8 votes
2 answers
4k views

8 - How to programmatically add terms to an existing Node

6 votes
5 answers
14k views

How to properly add inline Javascript?

5 votes
2 answers
3k views

Is it possible to use an image style with a path rather than a URI?

5 votes
3 answers
5k views

How do I theme a link with twig for a specific content type?

4 votes
1 answer
7k views

How can I display a taxonomy term's parent ID in Views?

4 votes
3 answers
9k views

How do I get $node->body $node->teaser?

3 votes
1 answer
1k views

8 - Is there a drush command to reset a module's config back to install defaults?

3 votes
2 answers
3k views

8 - How do I load a Term entity from an EntityReferenceItem?

3 votes
1 answer
2k views

What is the correct way to cache blocks by language?

2 votes
2 answers
504 views

Can I disable input filters in a view?

2 votes
2 answers
267 views

Is there a way to log changes to module settings for better long-term administration and debugging? [duplicate]

2 votes
3 answers
2k views

Programmatically create a comment form for a node

2 votes
1 answer
586 views

How can I get pathauto to generate language-inspecific rules?

2 votes
2 answers
3k views

How can I theme a form element with hook_preprocess_form_element()?

2 votes
2 answers
3k views

Is there a way with drush or console to delete all active config with a certain prefix?

2 votes
1 answer
2k views

Output node.type in page.html.twig gives "EntityReferenceFieldItemList cannot be printed"

1 vote
1 answer
1k views

Is there a way to force drush to enable a module and ignore dependencies?

1 vote
1 answer
452 views

What is the correct way to create a new ImageItem and attach it to a FileFieldItemList?

1 vote
1 answer
268 views

How do I replace a module with a dev version through the UI?

1 vote
1 answer
306 views

What's difference between node_revision__field_X and node__field_X tables in Drupal 8?

1 vote
1 answer
538 views

Can I create a view of watchdog log entries?

1 vote
1 answer
338 views

Possible to use PDO inside a custom module in Drupal 6?

1 vote
1 answer
415 views

How do I safely get the internal path to the current site in a multisite setup?

1 vote
1 answer
461 views

Some tags in the output from my controller are filtered away

1 vote
1 answer
289 views

How do I get kint() to include the variable name in output?

1 vote
1 answer
96 views

Is there any way to count the number of items in cache?

0 votes
1 answer
175 views

8 - Node::load is generating an object with circular reference which is crashing kint() and var_export()

0 votes
1 answer
160 views

How to change block visibility/pages in hook_block in my module?

0 votes
4 answers
3k views

How do I reference an image inside my custom module directory?