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