BackendUtility::getItemLabel is a function in the TYPO3 CMS BackendUtility utility class that retrieves the label of a specific item from the TYPO3 database.
Example 1: Retrieving the label of a page in the TYPO3 backend.
$pageId = 123; // The ID of the page to get the label for $pageLabel = BackendUtility::getItemLabel('pages', $pageId); // Get the label for the specified page ID
In this example, we are retrieving the label of a page in the TYPO3 backend by passing in the table name ('pages') and the ID of the page we want to retrieve the label for.
Example 2: Retrieving the label of a content element in the TYPO3 backend.
$ceId = 456; // The ID of the content element to get the label for $ceLabel = BackendUtility::getItemLabel('tt_content', $ceId); // Get the label for the specified content element ID
In this example, we are retrieving the label of a content element in the TYPO3 backend by passing in the table name ('tt_content') and the ID of the content element we want to retrieve the label for.
PHP TYPO3\CMS\Backend\Utility BackendUtility::getItemLabel - 28 examples found. These are the top rated real world PHP examples of TYPO3\CMS\Backend\Utility\BackendUtility::getItemLabel extracted from open source projects. You can rate examples to help us improve the quality of examples.