public function dataProvider(string $name): DataProviderInterface
    {
        if (isset($this->dataProviders[$name])) {
            return $this->dataProviders[$name];
        }
        throw new \InvalidArgumentException(sprintf(
            "Requested data provider '%s' could not be found; does the content type exist, or provider not specified?",
            $name
        ));
    }
public function dataProvider(string $name): DataProviderInterface
    {
        if (isset($this->dataProviders[$name])) {
            return $this->dataProviders[$name];
        }
        throw new \InvalidArgumentException(sprintf(
            "Requested data provider '%s' could not be found; does the content type exist, or provider not specified?",
            $name
        ));
    }
public function dataProvider ( string $ name ) : DataProviderInterface { if ( isset ( $ this -> dataProviders [ $ name ] ) ) { return $ this -> dataProviders [ $ name ] ; } throw new \ InvalidArgumentException ( sprintf ( "Requested data provider '%s' could not be found; does the content type exist, or provider not specified?" , $ name ) ) ; }
Get a data provider by name.

@throws \InvalidArgumentException
Get a data provider by name .