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 19, 2023
1 parent 74df401 commit 1431f81
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 1431f81

Please sign in to comment.