How to remove Create button from resource

I deleted create, edit and view pages from my resource but i still seeing create button. I don't want to use policy to remove create button. Do you have any suggestion?
3 Replies
OzgurOzarpaci
OzgurOzarpaci15mo ago
Sorry i looking this 2 days but now i figured out. I just added this function to my resource:
public static function canCreate(): bool
{
return false;
}
public static function canCreate(): bool
{
return false;
}
techenby
techenby15mo ago
Did you also delete the Create action from the ListPage?
Dennis Koch
Dennis Koch15mo ago
Yeah you could just remove the action.