Overrides Drupal\config\ConfigStorageController::create().
Overrides ConfigStorageController::create
public function create(array $values) {
// If there is no information about displays available add at least the
// default display.
$values += array(
'display' => array(
'default' => array(
'display_plugin' => 'default',
'id' => 'default',
'display_title' => 'Master',
'position' => 0,
'display_options' => array(),
),
),
);
$entity = parent::create($values);
$this
->attachDisplays($entity);
return $entity;
}