Answers.Body: <pre><code>$entries = Entry::find()-&gt;section('sectionHandle')-&gt;type(['yourTypeHandle'])-&gt;all();
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-05-04T10:01:28.537Z
Answers.LastActivityDate: 2018-05-04T10:01:28.537Z
Answers.UserDisplayName: Robin Schambach
Body: <p>I'm trying to get all Entries that are from a specific Entry Type.</p>
  
  <p>My Section is "Site".
  Which has 3 different Entry Types.</p>
  
  <p>Now I want to get all Entries from the Entry Type "Program".</p>
  
  <p>I'm trying to reach my goal with <code>Craft::$app-&gt;sections-&gt;</code> or <code>Craft::$app-&gt;elements-&gt;</code></p>
  
Tags: <plugin-development><sections><entry-type>
Title: Get Entries from a specific Entry Type
ThreadText: # Get Entries from a specific Entry Type
  
  (Asked by: username_0 on 2018-05-04)
  
  I'm trying to get all Entries that are from a specific Entry Type.
  
  My Section is "Site".
  Which has 3 different Entry Types.
  
  Now I want to get all Entries from the Entry Type "Program".
  
  I'm trying to reach my goal with `Craft::$app->sections->` or `Craft::$app->elements->`
  
  **Tags:** plugin-development, sections, entry-type
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-05-04. Score: 3 | Accepted answer
  
  ```
  $entries = Entry::find()->section('sectionHandle')->type(['yourTypeHandle'])->all();
  
  ```
  
  
  ---
  
  