27 private $uiComponentTypeMap = [];
34 $this->uiComponentTypeMap = $uiComponentTypeMap;
41 public function resolve(UiComponentContext $componentContext): string
43 $acceptType = $componentContext->getAcceptType();
44 return $this->uiComponentTypeMap[$acceptType] ?? static::DEFAULT_CONTENT_TYPE;
resolve(UiComponentContext $componentContext)
const DEFAULT_CONTENT_TYPE
__construct(array $uiComponentTypeMap)