Automattic\WooCommerce\Internal\Api\Autogenerated\GraphQLTypes\Output
SelectedAttribute::get
Method of the class: SelectedAttribute{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = SelectedAttribute::get(): ObjectType;
SelectedAttribute::get() SelectedAttribute::get code WC 10.9.1
public static function get(): ObjectType {
if ( null === self::$instance ) {
self::$instance = new ObjectType(
array(
'name' => 'SelectedAttribute',
'description' => __( 'A selected attribute value on a product variation.', 'woocommerce' ),
'fields' => fn() => array(
'name' => array(
'type' => Type::nonNull( Type::string() ),
'description' => __( 'The attribute name or slug.', 'woocommerce' ),
),
'value' => array(
'type' => Type::nonNull( Type::string() ),
'description' => __( 'The selected attribute value.', 'woocommerce' ),
),
),
)
);
}
return self::$instance;
}