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

Delete Single or Multiple Containers in Placeholder View Helper #168

Merged
merged 5 commits into from
Dec 6, 2018
Merged

Delete Single or Multiple Containers in Placeholder View Helper #168

merged 5 commits into from
Dec 6, 2018

Conversation

gsteel
Copy link
Contributor

@gsteel gsteel commented Oct 24, 2018

Add the ability to delete single containers or remove all containers from the placeholder view helper. This is useful when you're running with Swoole for example - All (I Think) other placeholder implementations offer a deleteContainer() method.

@@ -63,7 +63,7 @@ $this->placeholder('foo')
<?= $this->placeholder('foo') ?>
```

The above results in an unodered list with pretty indentation.
The above results in an unordered list with pretty indentation.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍


```php
<?php
// Delete a single Container
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please split this code example. One example for deleting a container and a second example to clear all containers.

### Delete a single container

```php
$this->plugin('placeholder')->deleteContainer('myNamedContainer');
```

### Clear all containers

```php
$this->plugin('placeholder')->clearContainers();
```

@froschdesign froschdesign added this to the 2.11.0 milestone Nov 12, 2018
@froschdesign
Copy link
Member

@gsteel
For new features please use always the develop branch. Thanks!

@gsteel gsteel changed the base branch from master to develop November 12, 2018 08:46
@weierophinney weierophinney dismissed froschdesign’s stale review December 6, 2018 22:45

Feedback was incorporated by author.

@weierophinney weierophinney merged commit 60f5dc6 into zendframework:develop Dec 6, 2018
@weierophinney
Copy link
Member

Thanks, @gsteel!

@gsteel gsteel deleted the clear-placeholder-helper branch December 10, 2018 16:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants