Jarves\Admin\FieldTypes\FieldTypes::newType PHP Метод

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

public newType ( string $id ) : Jarves\Admin\FieldTypes\TypeInterface
$id string
Результат Jarves\Admin\FieldTypes\TypeInterface
    public function newType($id)
    {
        if ($serviceId = @$this->types[strtolower($id)]) {
            return $this->container->get($serviceId);
        }
        throw new TypeNotFoundException(sprintf('FieldType `%s` not found. You should create a service that implements ' . 'Jarves\\Admin\\FieldTypes\\TypeInterface and add a <field-type> configuration', $id));
    }