Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more
oknate's user avatar
oknate's user avatar
oknate's user avatar
oknate
  • Member for 9 years, 2 months
  • Last seen more than 2 years ago
  • New York, NY, United States
19 votes
5 answers
27k views

How do I get the node type label from a node object?

18 votes
5 answers
19k views

What is the correct way to set cache contexts on custom blocks?

14 votes
2 answers
21k views

How to test if current page is an admin page?

12 votes
2 answers
6k views

How can I debug entity queries?

11 votes
3 answers
6k views

What is the appropriate way to get items from an entityqueue?

10 votes
1 answer
2k views

Returning alternate HTTP codes for unpublished node

8 votes
6 answers
9k views

Is there a way to clone a content type and its fields?

8 votes
3 answers
4k views

Custom 500 Error page: Is there a way to theme a fatal error?

8 votes
2 answers
3k views

How to mock a node field value for phpunit?

6 votes
2 answers
3k views

How to alter node url or toUrl function output?

6 votes
1 answer
3k views

What is the right way to get number of items from a field?

6 votes
2 answers
6k views

How do you clear cache on a block when node of certain bundle added or updated?

5 votes
1 answer
1k views

How do I programmatically find the core version?

4 votes
1 answer
761 views

How to get attachments out of a twig file

4 votes
1 answer
2k views

Unexpected error during import . . . plugin does not exist error on drush config import

4 votes
1 answer
2k views

Is it a security issue to put CSRF token in drupal settings?

4 votes
1 answer
292 views

How to favor exact matches in entity reference autocomplete?

4 votes
1 answer
101 views

Are there conditions where invalidated cache items are returned?

4 votes
1 answer
3k views

How to load node object in node preview page?

3 votes
1 answer
173 views

How do I capture a page as HTML?

3 votes
1 answer
2k views

How to prevent duplicate entity reference items from being entered on a field?

3 votes
1 answer
1k views

How to order by a column with NULL values in it due to leftJoin?

3 votes
1 answer
385 views

How to copy view modes between content types in Drupal 8?

3 votes
1 answer
2k views

how do I add contextual edit links in block template for a block entity?

3 votes
2 answers
1k views

How to cache block for logged in user?

2 votes
2 answers
1k views

How to check if search_index's solr is running?

2 votes
1 answer
734 views

How to get custom indexed field to show up in view?

2 votes
1 answer
3k views

How to add a custom field to apache solr?

2 votes
1 answer
2k views

How to display a field twice in a view mode?

2 votes
0 answers
483 views

How to properly programmatically add field collections to an entity in drupal 8?