Create a configurable Block programmatically | Drupal 8