src/DataDefinition/Definition/DefaultDataProviderDefinition.php
protected function makeName($information)
    {
        if ($information instanceof DataProviderInformationInterface) {
            $information = $information->getName();
        }

        if (!\is_string($information)) {
            throw new DcGeneralInvalidArgumentException('Invalid value passed.');
        }

        return $information;
    }
protected function makeName($information)
    {
        if ($information instanceof DataProviderInformationInterface) {
            $information = $information->getName();
        }

        if (!\is_string($information)) {
            throw new DcGeneralInvalidArgumentException('Invalid value passed.');
        }

        return $information;
    }
protected function makeName ( $ information ) { if ( $ information instanceof DataProviderInformationInterface ) { $ information = $ information -> getName ( ) ; } if ( ! \ is_string ( $ information ) ) { throw new DcGeneralInvalidArgumentException ( 'Invalid value passed.' ) ; } return $ information ; }
Convert a value into a data definition name.

Convenience method to ensure we have a data provider name.

@param DataProviderInformationInterface|string $information The information or name of a data provider.

@return string

@throws DcGeneralInvalidArgumentException If neither a string nor an instance of DataProviderInformationInterface
has been passed.

@internal
Convert a value into a data definition name .