api/laravel/View/ComponentSlot.yaml

102 lines
2.1 KiB
YAML
Raw Permalink Normal View History

2024-09-26 09:03:21 +00:00
name: ComponentSlot
class_comment: null
dependencies:
- name: Htmlable
type: class
source: Illuminate\Contracts\Support\Htmlable
- name: InvalidArgumentException
type: class
source: InvalidArgumentException
- name: Stringable
type: class
source: Stringable
properties:
- name: attributes
visibility: public
comment: '# * The slot attribute bag.
# *
# * @var \Illuminate\View\ComponentAttributeBag'
- name: contents
visibility: protected
comment: '# * The slot contents.
# *
# * @var string'
methods:
- name: __construct
visibility: public
parameters:
- name: contents
default: ''''''
- name: attributes
default: '[]'
comment: "# * The slot attribute bag.\n# *\n# * @var \\Illuminate\\View\\ComponentAttributeBag\n\
# */\n# public $attributes;\n# \n# /**\n# * The slot contents.\n# *\n# * @var\
\ string\n# */\n# protected $contents;\n# \n# /**\n# * Create a new slot instance.\n\
# *\n# * @param string $contents\n# * @param array $attributes\n# * @return\
\ void"
- name: withAttributes
visibility: public
parameters:
- name: attributes
comment: '# * Set the extra attributes that the slot should make available.
# *
# * @param array $attributes
# * @return $this'
- name: toHtml
visibility: public
parameters: []
comment: '# * Get the slot''s HTML string.
# *
# * @return string'
- name: isEmpty
visibility: public
parameters: []
comment: '# * Determine if the slot is empty.
# *
# * @return bool'
- name: isNotEmpty
visibility: public
parameters: []
comment: '# * Determine if the slot is not empty.
# *
# * @return bool'
- name: hasActualContent
visibility: public
parameters:
- name: callable
default: 'null'
comment: '# * Determine if the slot has non-comment content.
# *
# * @param callable|string|null $callable
# * @return bool'
- name: __toString
visibility: public
parameters: []
comment: '# * Get the slot''s HTML string.
# *
# * @return string'
traits:
- Illuminate\Contracts\Support\Htmlable
- InvalidArgumentException
- Stringable
interfaces:
- Htmlable