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
OzgurOzarpaciOP3y 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
techenby3y ago
Did you also delete the Create action from the ListPage?
Dennis Koch
Dennis Koch3y ago
Yeah you could just remove the action.

Did you find this page helpful?