I tried this : dpm($button['#value']->string
but got this error:
access protected property Drupal\Core\StringTranslation\TranslatableMarkup::$string
Within a form object I need to be able to read that value and also change it. how can I access it? thanks