Refactor
This commit is contained in:
parent
6b54631f46
commit
3c04dfd710
1 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@ namespace Drupal\opd_podcast\Repository;
|
|||
use Drupal\Core\Entity\EntityTypeManagerInterface;
|
||||
use Drupal\node\NodeInterface;
|
||||
use Drupal\node\NodeStorageInterface;
|
||||
use Drupal\opd_podcast\Episode;
|
||||
|
||||
readonly final class PodcastNodeRepository {
|
||||
|
||||
|
@ -23,7 +24,7 @@ readonly final class PodcastNodeRepository {
|
|||
$query = $this->nodeStorage->getQuery();
|
||||
$query->accessCheck();
|
||||
$query->condition('status', NodeInterface::PUBLISHED);
|
||||
$query->condition('type', 'podcast_episode');
|
||||
$query->condition('type', Episode::NODE_TYPE);
|
||||
|
||||
$nodeIds = $query->execute();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue