protected function getAttributes(ContentInterface $owner)
    {
        /** @var AttributeInterface $attributes */
        $attributes = $owner->getValueSet()->getAttributes();

        $choices = [];
        foreach ($attributes as $attribute) {
            if (!in_array($attribute->getValueType(), ['select', 'radio', 'checklist'])) {
                continue;
            }
            $choices[$attribute->getDisplayName()] = $attribute->getName();
        }

        return $choices;
    }
protected function getAttributes(ContentInterface $owner)
    {
        /** @var AttributeInterface $attributes */
        $attributes = $owner->getValueSet()->getAttributes();

        $choices = [];
        foreach ($attributes as $attribute) {
            if (!in_array($attribute->getValueType(), ['select', 'radio', 'checklist'])) {
                continue;
            }
            $choices[$attribute->getDisplayName()] = $attribute->getName();
        }

        return $choices;
    }
protected function getAttributes ( ContentInterface $ owner ) { /** @var AttributeInterface $attributes */ $ attributes = $ owner -> getValueSet ( ) -> getAttributes ( ) ; $ choices = [ ] ; foreach ( $ attributes as $ attribute ) { if ( ! in_array ( $ attribute -> getValueType ( ) , [ 'select' , 'radio' , 'checklist' ] ) ) { continue ; } $ choices [ $ attribute -> getDisplayName ( ) ] = $ attribute -> getName ( ) ; } return $ choices ; }
Get the selectable attributes

@param ContentInterface $owner

@return array
Get the selectable attributes