class DeleteLocalisationPolicy implements DeletePolicy (View source)

A policy that deletes all localisations for a record

Requires that the object has {\TractorCow\Fluent\Extension\FluentExtension}

Methods

public
bool
delete(DataObject $record)

No description

protected
bool
checkIfBlocked(DataObject $record, Locale $locale)

Determine if this object has other localisations blocking deletion

Details

bool delete(DataObject $record)

No description

Parameters

DataObject $record

Return Value

bool

Determines if any dependent objects block upstream deletion (e.g. db / model constraints) If this returns true, then there are additional conditions that must be satisfied before upstream relational constraints are safe to delete. If this returns true, then all downstream entities are reported purged, and upstream relational constraints can be deleted.

protected bool checkIfBlocked(DataObject $record, Locale $locale)

Determine if this object has other localisations blocking deletion

Parameters

DataObject $record
Locale $locale

Return Value

bool