-1

I created my content type Programmatically .. I need a function that list content who have my ContentType.

closed as unclear what you're asking by sanzante, Pierre.Vriens, DRUPWAY, mradcliffe, Shawn Conn Feb 13 '18 at 23:50

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

1

You can try like this

$types = \Drupal::entityTypeManager()
->getStorage('node_type')
->loadMultiple();

More info Get all node types in Drupal 8

Not the answer you're looking for? Browse other questions tagged or ask your own question.