How to hide relation manager only on view pages

I found how to hide it on edit pages, but I want to hide it only when using the view route
Solution
you can register the relation manager only in the EditPage

public function getRelationManagers(): array
{
    return [
        YourRelationManager::class
    ];
}
Was this page helpful?