Overrides MediaSourceBase::createSourceField
public function createSourceField(MediaTypeInterface $type) { $plugin_definition = $this->getPluginDefinition(); $label = (string) $this->t('@type URL', [ '@type' => $plugin_definition['label'], ]); return parent::createSourceField($type)->set('label', $label); }