src/Backend/Context/DocumentContext.php 1 location
|
@@ 72-79 (lines=8) @@
|
| 69 |
|
* @param array|ValueInterface[] $variables |
| 70 |
|
* @return TypeDefinition |
| 71 |
|
*/ |
| 72 |
|
public function get(string $type, array $variables = []): TypeDefinition |
| 73 |
|
{ |
| 74 |
|
if ($this->has($type)) { |
| 75 |
|
return $this->types[$type]->make($variables); |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
return $this->parent->get($type, $variables); |
| 79 |
|
} |
| 80 |
|
|
| 81 |
|
/** |
| 82 |
|
* @return string |
src/Backend/Context/LocalContext.php 1 location
|
@@ 89-96 (lines=8) @@
|
| 86 |
|
* @param array|ValueInterface[] $variables |
| 87 |
|
* @return TypeDefinition |
| 88 |
|
*/ |
| 89 |
|
public function get(string $type, array $variables = []): TypeDefinition |
| 90 |
|
{ |
| 91 |
|
if ($this->has($type)) { |
| 92 |
|
return $this->types[$type]->make($variables); |
| 93 |
|
} |
| 94 |
|
|
| 95 |
|
return $this->parent->get($type, $variables); |
| 96 |
|
} |
| 97 |
|
|
| 98 |
|
/** |
| 99 |
|
* Create new type definition with variables. |