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.


You can try like this

$types = \Drupal::entityTypeManager()

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.