---
title: "PHP and TypoScript"
manual: "TypoScript Explained"
version: "main"
permalink: "https://docs.typo3.org/permalink/t3tsref:appendix-a@main"
source: "AppendixA/Index.rst"
rendered: "2026-09-19T06:55:14+00:00"
---

# PHP and TypoScript {#appendix-a}

## ContentObjectRenderer {#content-object-renderer}

### `ContentObjectRenderer::cObjGetSingle(value, properties[, TSkey = '__'])` {#appendix-include-cobjgetsingle}

A method of `\TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer`.
Gets a content object from the `$conf` array.

#### Example: {#appendix-include-cobjgetsingle-example}

```php
$content = $cObjectRenderer->cObjGetSingle($conf['image'], $conf['image.'], 'My Image 2');
```

This would return any IMAGE cObject at the property `image` of the
`$conf` array for the include script!

### `ContentObjectRenderer::stdWrap(value, properties)` {#appendix-include-stdwrap}

A method of `\TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer`.

Hands the content in "value" to the stdWrap function, which will
process it according to the configuration of the array "properties".

#### Example: {#appendix-include-stdwrap-example}

```php
$content = $cObjectRenderer->stdWrap($content, $conf['stdWrap.']);
```

This will stdWrap the content with the properties of `.stdWrap` of the
`$conf` array!
