-1

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

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.