summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2018-04-14 18:27:32 (GMT)
committerAlex Pott2018-04-14 18:27:32 (GMT)
commit77e3a5c5d7bab5599322cf61859c2ac9186baa0b (patch)
tree8952b2df2eafa657224a855079eb44220c64cfe4
parentbb2ef5d7c628e57d72eb0329fe25584590705b29 (diff)
Issue #2959963 by msankhala, marcoscano: Remove obsolete code from MediaTypeForm
-rw-r--r--core/modules/media/src/MediaTypeForm.php4
1 files changed, 0 insertions, 4 deletions
diff --git a/core/modules/media/src/MediaTypeForm.php b/core/modules/media/src/MediaTypeForm.php
index 7766af2..0ba5ee5 100644
--- a/core/modules/media/src/MediaTypeForm.php
+++ b/core/modules/media/src/MediaTypeForm.php
@@ -144,10 +144,6 @@ class MediaTypeForm extends EntityForm {
'#disabled' => !empty($source),
];
- if (!$source) {
- $form['type']['#empty_option'] = $this->t('- Select media source -');
- }
-
if ($source) {
// Media source plugin configuration.
$form['source_dependent']['source_configuration'] = [