Devise\Pages\Fields\FieldsRepository::findTrashedFieldByIdAndScope PHP Méthode

findTrashedFieldByIdAndScope() public méthode

Find a field by it's scope and included fields that have been deleted
public findTrashedFieldByIdAndScope ( integer $fieldId, string $fieldScope ) : DvsField
$fieldId integer
$fieldScope string
Résultat DvsField || DvsGlobalField
    public function findTrashedFieldByIdAndScope($fieldId, $fieldScope)
    {
        return $fieldScope == 'global' ? $this->GlobalField->withTrashed()->find($fieldId) : $this->Field->withTrashed()->find($fieldId);
    }