src/Contao/View/Contao2BackendView/ActionHandler/CreateHandler.php
private function checkPermission(EnvironmentInterface $environment)
    {
        $dataDefinition = $environment->getDataDefinition();

        if (true === $dataDefinition->getBasicDefinition()->isCreatable()) {
            return true;
        }

        return \sprintf(
            '<div style="text-align:center; font-weight:bold; padding:40px;">
                You have no permission for create model in %s.
            </div>',
            $dataDefinition->getName()
        );
    }
private function checkPermission(EnvironmentInterface $environment)
    {
        $dataDefinition = $environment->getDataDefinition();

        if (true === $dataDefinition->getBasicDefinition()->isCreatable()) {
            return true;
        }

        return \sprintf(
            '<div style="text-align:center; font-weight:bold; padding:40px;">
                You have no permission for create model in %s.
            </div>',
            $dataDefinition->getName()
        );
    }
private function checkPermission ( EnvironmentInterface $ environment ) { $ dataDefinition = $ environment -> getDataDefinition ( ) ; if ( true === $ dataDefinition -> getBasicDefinition ( ) -> isCreatable ( ) ) { return true ; } return \ sprintf ( '<div style="text-align:center; font-weight:bold; padding:40px;">
                You have no permission for create model in %s.
            </div>' , $ dataDefinition -> getName ( ) ) ; }
Check permission for create a model.

@param EnvironmentInterface $environment The environment.

@return string|bool
Check permission for create a model .