withActiveCallable(callable $is_active)
Pass a callable which can decide whether your element is in a active state (e.g.
getPosition()
Return the default position for installation, this will be overridden by the configuration later.
setTypeInformation(TypeInformation $information)
withNonAvailableReason(Legacy $element)
If your provider or the service which provides the Item does not allow to activate the item (.
withAlwaysAvailable(bool $always_active)
withVisibilityCallable(callable $is_visible)
Pass a callable which can decide whether your element is visible for the current user.
withAvailableCallable(callable $is_avaiable)
Pass a callable which can decide wheter your element is available in general, e.g.