eZ\Publish\Core\Base\Container\ApiLoader\FieldTypeNameableCollectionFactory::registerNonNameableFieldType PHP Метод

registerNonNameableFieldType() публичный Метод

Field types are being registered as a closure so that they will be lazy loaded.
public registerNonNameableFieldType ( $fieldTypeServiceId, string $fieldTypeAlias )
$fieldTypeAlias string The field type alias (e.g. "ezstring")
    public function registerNonNameableFieldType($fieldTypeServiceId, $fieldTypeAlias)
    {
        $container = $this->container;
        $this->nameableFieldTypeClosures[$fieldTypeAlias] = function () use($container, $fieldTypeServiceId) {
            return new NameableFieldTypeFallback($container->get($fieldTypeServiceId));
        };
    }