Skip to content

Commit

Permalink
Set Image Field Type as searchable
Browse files Browse the repository at this point in the history
  • Loading branch information
ciastektk committed Oct 24, 2023
1 parent ff2452d commit 6893ad6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/FieldType/Image/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,11 @@ public static function getTranslationMessages(): array
Message::create('ezimage.name', 'ibexa_fieldtypes')->setDesc('Image'),
];
}

public function isSearchable(): bool
{
return true;
}
}

class_alias(Type::class, 'eZ\Publish\Core\FieldType\Image\Type');

0 comments on commit 6893ad6

Please sign in to comment.