tests passing
This commit is contained in:
@ -9,14 +9,14 @@ use Drupal\Core\Entity\EntityTypeManagerInterface;
|
||||
|
||||
class Utils {
|
||||
|
||||
public function __construct(
|
||||
EntityTypeManager $entityTypeManager = null
|
||||
) {
|
||||
if ($entityTypeManager == null) {
|
||||
$entityTypeManager = Drupal::entityTypeManager();
|
||||
}
|
||||
$this->entityTypeManager = $entityTypeManager;
|
||||
}
|
||||
// public function __construct(
|
||||
// EntityTypeManager $entityTypeManager = null
|
||||
// ) {
|
||||
// if ($entityTypeManager == null) {
|
||||
// $entityTypeManager = Drupal::entityTypeManager();
|
||||
// }
|
||||
// $this->entityTypeManager = $entityTypeManager;
|
||||
// }
|
||||
|
||||
public function addConditionsToQuery(QueryInterface $query, array $conditions): void {
|
||||
foreach($conditions as $condition) {
|
||||
|
Reference in New Issue
Block a user