Rock.Model.ContentChannelService.GetParentContentChannels C# (CSharp) Method

GetParentContentChannels() public method

Gets the parent content channel types.
public GetParentContentChannels ( int contentChannelId ) : IQueryable
contentChannelId int The content channel type identifier.
return IQueryable
        public IQueryable<ContentChannel> GetParentContentChannels( int contentChannelId )
        {
            return Queryable().Where( t => t.ChildContentChannels.Select( p => p.Id ).Contains( contentChannelId ) );
        }