19declare(strict_types=1);
99 $clone = clone($this);
100 $clone->visiblility_callable = $is_visible;
101 $clone->is_visible_static =
null;
111 if (isset($this->is_visible_static)) {
115 return $this->is_visible_static =
false;
117 if (is_callable($this->visiblility_callable)) {
120 $value = (bool) $callable();
122 return $this->is_visible_static = $value;
125 return $this->is_visible_static =
true;
133 $clone = clone($this);
134 $clone->available_callable = $is_available;
147 if (is_callable($this->available_callable)) {
150 return (
bool) $callable();
161 $clone = clone $this;
162 $clone->non_available_reason = $element;
174 return $this->non_available_reason instanceof
Legacy ? $this->non_available_reason :
$DIC->ui()->factory()->legacy(
"");
190 $clone = clone($this);
191 $clone->is_always_available = $always_active;
209 $clone = clone($this);
220 $this->type_information = $information;
237 if ($this instanceof
isChild) {
An exception for terminatinating execution or to throw for unit testing.
Class NullIdentification.
setTypeInformation(TypeInformation $information)
@inheritDoc
getTypeInformation()
@inheritDoc
__construct(IdentificationInterface $provider_identification)
AbstractBaseItem constructor.
withAvailableCallable(callable $is_available)
@inheritDoc
getNonAvailableReason()
@inheritDoc
withNonAvailableReason(Legacy $element)
@inheritDoc
isAlwaysAvailable()
@inheritDoc
withAlwaysAvailable(bool $always_active)
@inheritDoc
withVisibilityCallable(callable $is_visible)
@inheritDoc
withPosition(int $position)
@inheritDoc
getProviderIdentification()
@inheritDoc
Interface IdentificationInterface.
trait ComponentDecoratorTrait