From 898463da8d5df545754d4bffa1f9449d7d19fd96 Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Tue, 25 Feb 2025 10:03:05 +0100 Subject: [PATCH] custom_icons.md: Fix getContentTypeIconUrl function name --- .../back_office/back_office_elements/custom_icons.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/administration/back_office/back_office_elements/custom_icons.md b/docs/administration/back_office/back_office_elements/custom_icons.md index 574bb31b97..d6fcedfeed 100644 --- a/docs/administration/back_office/back_office_elements/custom_icons.md +++ b/docs/administration/back_office/back_office_elements/custom_icons.md @@ -42,13 +42,13 @@ It requires content type identifier as an argument. The function returns the pat Content types icons configuration is stored in a global object: `ibexa.adminUiConfig.contentTypes`. -You can retrieve the icon URL with the `getContentTypeIcon` helper function that is set on the global `ibexa.helpers.contentType` object. +You can retrieve the icon URL with the `getContentTypeIconUrl` helper function that is set on the global `ibexa.helpers.contentType` object. It takes content type identifier as an argument and returns one of the following items: - URL of a specified content type's icon - `null` if there is no content type with specified identifier -Example with `getContentTypeIcon`: +Example with `getContentTypeIconUrl`: ```jsx const contentTypeIconUrl = ibexa.helpers.contentType.getContentTypeIconUrl(contentTypeIdentifier);