From 65f99a9bfd2bd80666e92216187cf69378a69c4c Mon Sep 17 00:00:00 2001 From: Shannon Date: Wed, 20 Feb 2019 21:06:36 +1100 Subject: [PATCH] renames the method params to be consistent --- src/Umbraco.Web/PublishedContentExtensions.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Umbraco.Web/PublishedContentExtensions.cs b/src/Umbraco.Web/PublishedContentExtensions.cs index 33cc8dd761..f880076c50 100644 --- a/src/Umbraco.Web/PublishedContentExtensions.cs +++ b/src/Umbraco.Web/PublishedContentExtensions.cs @@ -979,11 +979,11 @@ namespace Umbraco.Web /// /// The content. /// The specific culture to filter for. If null is used the current culture is used. (Default is null) - /// One or more content type alias. + /// The content type alias. /// The children of the content, of any of the specified types. - public static IEnumerable ChildrenOfType(this IPublishedContent content, string alias, string culture = null) + public static IEnumerable ChildrenOfType(this IPublishedContent content, string contentTypeAlias, string culture = null) { - return content.Children(x => alias.InvariantContains(x.ContentType.Alias), culture); + return content.Children(x => contentTypeAlias.InvariantContains(x.ContentType.Alias), culture); } /// @@ -1010,9 +1010,9 @@ namespace Umbraco.Web /// /// Gets the first child of the content, of a given content type. /// - public static IPublishedContent FirstChildOfType(this IPublishedContent content, string alias, string culture = null) + public static IPublishedContent FirstChildOfType(this IPublishedContent content, string contentTypeAlias, string culture = null) { - return content.ChildrenOfType(alias, culture).FirstOrDefault(); + return content.ChildrenOfType(contentTypeAlias, culture).FirstOrDefault(); } public static IPublishedContent FirstChild(this IPublishedContent content, Func predicate, string culture = null)