fix localized page management and builder synchronization
Validate locales and route uniqueness, report page deletion failures, and keep translation CRUD and route caches consistent. Show translation completeness in page settings and listings, and preserve locale-specific block data while synchronizing shared structure. Add translation service and page builder synchronization tests.
This commit is contained in:
@@ -4,4 +4,20 @@ namespace Plugi\Contracts;
|
||||
|
||||
interface PageTranslationRepositoryContract
|
||||
{
|
||||
/**
|
||||
* Determine whether a route is already used by another page translation.
|
||||
*
|
||||
* @param string $route
|
||||
* @param mixed|null $excludedPageId
|
||||
* @return bool
|
||||
*/
|
||||
public function routeExists(string $route, $excludedPageId = null): bool;
|
||||
|
||||
/**
|
||||
* Return translations belonging to the given page IDs.
|
||||
*
|
||||
* @param array $pageIds
|
||||
* @return array
|
||||
*/
|
||||
public function getForPages(array $pageIds): array;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user