src/Contao/View/Contao2BackendView/ActionHandler/PasteHandler.php
private function modelIdFromParameter(InputProviderInterface $input, $name)
    {
        if ($input->hasParameter($name) && ($value = $input->getParameter($name))) {
            return ModelId::fromSerialized($value);
        }

        return null;
    }
private function modelIdFromParameter(InputProviderInterface $input, $name)
    {
        if ($input->hasParameter($name) && ($value = $input->getParameter($name))) {
            return ModelId::fromSerialized($value);
        }

        return null;
    }
private function modelIdFromParameter ( InputProviderInterface $ input , $ name ) { if ( $ input -> hasParameter ( $ name ) && ( $ value = $ input -> getParameter ( $ name ) ) ) { return ModelId :: fromSerialized ( $ value ) ; } return null ; }
Obtain the parameter with the given name from the input provider if it exists.

@param InputProviderInterface $input The input provider.
@param string                 $name  The parameter to retrieve.

@return ModelId|null
Obtain the parameter with the given name from the input provider if it exists .