Skip to content

Commit

Permalink
new version of docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Levdbas committed Jun 7, 2024
1 parent 973d31e commit e13f1a0
Show file tree
Hide file tree
Showing 8 changed files with 2,020 additions and 224 deletions.
179 changes: 87 additions & 92 deletions composer.lock

Large diffs are not rendered by default.

60 changes: 60 additions & 0 deletions content/v2/hooks/actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,63 @@ title: "Action Hooks"
is_reference: true
---

## timber\_{$object\_type}\_get\_meta\_pre

Filters post meta data before it is fetched from the database.

**DEPRECATED** since 2.0.0, use `timber/{object_type}/pre_meta`

## timber/loader/render\_file

Fires after …

| Name | Type | Description |
| --- | --- | --- |
| $result | `string` | |

## timber\_loader\_render\_file

Fires after …

**DEPRECATED** since 2.0.0, use `timber/loader/render_file`

This action is used by the Timber Debug Bar extension.

## timber/calling\_php\_file

Fires after the calling PHP file was determined in Timber’s compile
function.

This action is used by the Timber Debug Bar extension.

**since** 1.1.2

| Name | Type | Description |
| --- | --- | --- |
| $caller_file | `string` or `null` | The calling script file. |

## timber/compile/done

Fires after a Twig template was compiled and before the compiled data
is returned.

This action can be helpful if you need to debug Twig template
compilation.

**since** 2.0.0

| Name | Type | Description |
| --- | --- | --- |
| $output | `string` | The compiled output. |
| $file | `string` | The name of the Twig template that was compiled. |
| $data | `array` | The data that was used to compile the Twig template. |
| $expires | `bool` or `int` or `array` | The expiration time of the cache in seconds, or false to disable cache. |
| $cache_mode | `string` | Any of the cache mode constants defined in Timber\Loader. |

## timber\_compile\_done

Fires after a Twig template was compiled and before the compiled data
is returned.

**DEPRECATED** since 2.0.0, use `timber/compile/done`

Loading

0 comments on commit e13f1a0

Please sign in to comment.