Rock.Model.DefinedTypeService.GetByFieldTypeId C# (CSharp) Method

GetByFieldTypeId() public method

Returns an enumerable collection of DefinedTypes by FieldTypeId
public GetByFieldTypeId ( int fieldTypeId ) : IOrderedQueryable
fieldTypeId int A representing the FieldTypeId of the that is used for the /// ///
return IOrderedQueryable
        public IOrderedQueryable<Rock.Model.DefinedType> GetByFieldTypeId( int? fieldTypeId )
        {
            return Queryable()
                .Where( t =>
                    ( t.FieldTypeId == fieldTypeId ||
                        ( fieldTypeId == null && t.FieldTypeId == null ) ) )
                .OrderBy( t => t.Order );
        }