MenuItem.getAttributeValue

Queries the named attribute on menu_item. If expected_type is specified and the attribute does not have this type, NULL is returned. NULL is also returned if the attribute simply does not exist. Since 2.34

class MenuItem
getAttributeValue

Parameters

attribute string

the attribute name to query

expectedType VariantType

the expected type of the attribute. [allow-none]

Return Value

Type: Variant

the attribute value, or NULL. [transfer full]

Meta