Trait Yiisoft\Html\Tag\Base\TagSourcesTrait
| Implemented by | Yiisoft\ |
|---|
Adds functionality for processing tag with children {@see Source} tags.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| addSource() | Yiisoft\ |
|
| sources() | Yiisoft\ |
Method Details
| public static addSource ( Yiisoft\ | ||
| $source | Yiisoft\ |
|
public function addSource(Source $source): static
{
$new = clone $this;
$new->sources[] = $source;
return $new;
}
| public static sources ( Yiisoft\ | ||
| $sources | Yiisoft\ |
|
public function sources(Source ...$sources): static
{
$new = clone $this;
$new->sources = $sources;
return $new;
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.