Devise\Pages\Fields\FieldsRepository::findFieldByIdAndScope PHP Method

findFieldByIdAndScope() public method

Find a field by it's id and scope (page or global)
public findFieldByIdAndScope ( integer $fieldId, string $fieldScope ) : DvsField
$fieldId integer
$fieldScope string
return DvsField || DvsGlobalField
    public function findFieldByIdAndScope($fieldId, $fieldScope)
    {
        return $fieldScope == 'global' ? $this->GlobalField->find($fieldId) : $this->Field->find($fieldId);
    }