ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ReplaceSignal.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
28 class ReplaceSignal extends Signal implements \ILIAS\UI\Component\ReplaceSignal
29 {
30  use ComponentHelper;
31 
35  public function withAsyncRenderUrl(string $url): ReplaceSignal
36  {
37  $clone = clone $this;
38  $clone->addOption('url', $url);
39 
40  return $clone;
41  }
42 
46  public function getAsyncRenderUrl(): string
47  {
48  return (string) $this->getOption('url');
49  }
50 }
getAsyncRenderUrl()
Get the url called to return the content.
withAsyncRenderUrl(string $url)
Get the same signal returning an element from the given url.
$url
Definition: shib_logout.php:66
addOption(string $key, $value)
Definition: Signal.php:55