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