Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit 3cd55e3

Browse files
gsteelweierophinney
authored andcommitted
Improve documentation for deleting placeholder containers
1 parent fa581f1 commit 3cd55e3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/book/helpers/placeholder.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,14 @@ foreach ($this->data as $datum): ?>
136136
In certain situations it is desirable to remove or clear containers and aggregated content. The placeholder view helper
137137
provides two methods to either delete a specific container or clear all containers at once:
138138

139+
### Delete a single container
139140
```php
140-
<?php
141-
// Delete a single Container
142-
$placeholderHelper = $this->plugin('placeholder');
143-
$placeholderHelper->deleteContainer('myNamedContainer');
144-
// Clear all containers at once
145-
$placeholderHelper->clearContainers();
146-
?>
141+
$this->plugin('placeholder')->deleteContainer('myNamedContainer');
142+
```
143+
144+
### Clear all containers
145+
```php
146+
$this->plugin('placeholder')->clearContainers();
147147
```
148148

149149
## Concrete Implementations

0 commit comments

Comments
 (0)