View.php 5.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?php
  2. namespace Illuminate\Support\Facades;
  3. /**
  4. * @method static \Illuminate\Contracts\View\View file(string $path, \Illuminate\Contracts\Support\Arrayable|array $data = [], array $mergeData = [])
  5. * @method static \Illuminate\Contracts\View\View make(string $view, \Illuminate\Contracts\Support\Arrayable|array $data = [], array $mergeData = [])
  6. * @method static \Illuminate\Contracts\View\View first(array $views, \Illuminate\Contracts\Support\Arrayable|array $data = [], array $mergeData = [])
  7. * @method static string renderWhen(bool $condition, string $view, \Illuminate\Contracts\Support\Arrayable|array $data = [], array $mergeData = [])
  8. * @method static string renderUnless(bool $condition, string $view, \Illuminate\Contracts\Support\Arrayable|array $data = [], array $mergeData = [])
  9. * @method static string renderEach(string $view, array $data, string $iterator, string $empty = 'raw|')
  10. * @method static bool exists(string $view)
  11. * @method static \Illuminate\Contracts\View\Engine getEngineFromPath(string $path)
  12. * @method static mixed share(array|string $key, mixed|null $value = null)
  13. * @method static void incrementRender()
  14. * @method static void decrementRender()
  15. * @method static bool doneRendering()
  16. * @method static bool hasRenderedOnce(string $id)
  17. * @method static void markAsRenderedOnce(string $id)
  18. * @method static void addLocation(string $location)
  19. * @method static \Illuminate\View\Factory addNamespace(string $namespace, string|array $hints)
  20. * @method static \Illuminate\View\Factory prependNamespace(string $namespace, string|array $hints)
  21. * @method static \Illuminate\View\Factory replaceNamespace(string $namespace, string|array $hints)
  22. * @method static void addExtension(string $extension, string $engine, \Closure|null $resolver = null)
  23. * @method static void flushState()
  24. * @method static void flushStateIfDoneRendering()
  25. * @method static array getExtensions()
  26. * @method static \Illuminate\View\Engines\EngineResolver getEngineResolver()
  27. * @method static \Illuminate\View\ViewFinderInterface getFinder()
  28. * @method static void setFinder(\Illuminate\View\ViewFinderInterface $finder)
  29. * @method static void flushFinderCache()
  30. * @method static \Illuminate\Contracts\Events\Dispatcher getDispatcher()
  31. * @method static void setDispatcher(\Illuminate\Contracts\Events\Dispatcher $events)
  32. * @method static \Illuminate\Contracts\Container\Container getContainer()
  33. * @method static void setContainer(\Illuminate\Contracts\Container\Container $container)
  34. * @method static mixed shared(string $key, mixed $default = null)
  35. * @method static array getShared()
  36. * @method static void macro(string $name, object|callable $macro)
  37. * @method static void mixin(object $mixin, bool $replace = true)
  38. * @method static bool hasMacro(string $name)
  39. * @method static void flushMacros()
  40. * @method static void startComponent(\Illuminate\Contracts\View\View|\Illuminate\Contracts\Support\Htmlable|\Closure|string $view, array $data = [])
  41. * @method static void startComponentFirst(array $names, array $data = [])
  42. * @method static string renderComponent()
  43. * @method static mixed|null getConsumableComponentData(string $key, mixed $default = null)
  44. * @method static void slot(string $name, string|null $content = null, array $attributes = [])
  45. * @method static void endSlot()
  46. * @method static array creator(array|string $views, \Closure|string $callback)
  47. * @method static array composers(array $composers)
  48. * @method static array composer(array|string $views, \Closure|string $callback)
  49. * @method static void callComposer(\Illuminate\Contracts\View\View $view)
  50. * @method static void callCreator(\Illuminate\Contracts\View\View $view)
  51. * @method static void startFragment(string $fragment)
  52. * @method static string stopFragment()
  53. * @method static mixed getFragment(string $name, string|null $default = null)
  54. * @method static array getFragments()
  55. * @method static void flushFragments()
  56. * @method static void startSection(string $section, string|null $content = null)
  57. * @method static void inject(string $section, string $content)
  58. * @method static string yieldSection()
  59. * @method static string stopSection(bool $overwrite = false)
  60. * @method static string appendSection()
  61. * @method static string yieldContent(string $section, string $default = '')
  62. * @method static string parentPlaceholder(string $section = '')
  63. * @method static bool hasSection(string $name)
  64. * @method static bool sectionMissing(string $name)
  65. * @method static mixed getSection(string $name, string|null $default = null)
  66. * @method static array getSections()
  67. * @method static void flushSections()
  68. * @method static void addLoop(\Countable|array $data)
  69. * @method static void incrementLoopIndices()
  70. * @method static void popLoop()
  71. * @method static \stdClass|null getLastLoop()
  72. * @method static array getLoopStack()
  73. * @method static void startPush(string $section, string $content = '')
  74. * @method static string stopPush()
  75. * @method static void startPrepend(string $section, string $content = '')
  76. * @method static string stopPrepend()
  77. * @method static string yieldPushContent(string $section, string $default = '')
  78. * @method static void flushStacks()
  79. * @method static void startTranslation(array $replacements = [])
  80. * @method static string renderTranslation()
  81. *
  82. * @see \Illuminate\View\Factory
  83. */
  84. class View extends Facade
  85. {
  86. /**
  87. * Get the registered name of the component.
  88. *
  89. * @return string
  90. */
  91. protected static function getFacadeAccessor()
  92. {
  93. return 'view';
  94. }
  95. }